I have a date which is saved in a regular string.
// format = DD-MM-YYYY $date = "10-12-2011";
How can I get the date-string +1 day so: 11-12-2011?
Advertisement
Answer
$date = date('d-m-Y', strtotime("+1 day", strtotime("10-12-2011")));
I have a date which is saved in a regular string.
// format = DD-MM-YYYY $date = "10-12-2011";
How can I get the date-string +1 day so: 11-12-2011?
$date = date('d-m-Y', strtotime("+1 day", strtotime("10-12-2011")));