Date Added: 14/01/2015


function next_day(date,next_day){

var expire_date1= new Date(date);

 //console.log(expire_date1);

 expire_date1.setDate(expire_date1.getDate()+next_day);
expire_date1.setMonth(expire_date1.getMonth()+1);

return expire_date1.getMonth()+'/'+expire_date1.getDate()+'/'+expire_date1.getFullYear() ;
}

next_day('01/21/2013',2);  // return '01/23/2013'

 

Last Update: Posted by: müslüm ÇEN
Not Commented Yet !
Please login in order to comment . Login