I have a date returned as part of a mySQL query in the form 2010-09-17
2010-09-17
I would like to set the variables $Date2 to $Date5 as follows:
$Dat
Using a variable for Number of days
$myDate = "2014-01-16"; $nDays = 16; $newDate = strtotime($myDate . '+ '.$nDays.'days'); echo new Date('d/m/Y', $soma); //format new date