I would like to work out how to calculate what the date will be after a given date for example this date:
$json->date = date("12/24/2012");
This doesn't work:
date('tomorrow', strtotime($json->date));
I would like to work out how to calculate what the date will be after a given date for example this date:
$json->date = date("12/24/2012");
This doesn't work:
date('tomorrow', strtotime($json->date));
Use DateTime
$datetime = new DateTime('tomorrow');
echo $datetime->format('Y-m-d H:i:s');
This should work just fine
$date = strtotime(date("Y-m-d", strtotime("2012-10-25")) . " +1 day");