function duration($day, $date) { $date1 = $date; //$date2 = date_create(\"Y/m/d\"); //$date1 = date_create(\"Y/m/d\", strtotime($date)); //echo $
Hello Please try this,
$date = date_create('2000-01-01'); date_add($date, date_interval_create_from_date_string('10 days')); echo date_format($date, 'Y-m-d');
this will help you to add number of days, month etc to date.
Thanks Amit