Hi,
I have pulled a date from a database in the format:
YYY-MM-DD
If I want to add a day to this date can it be done in PHP?
Thanks.
Date question
Moderator: General Moderators
-
spacebiscuit
- Forum Contributor
- Posts: 390
- Joined: Mon Mar 07, 2005 3:20 pm
Re: Date question
Thankls I can't see how that will work though as it seems to work with unix time stamps?
Re: Date question
Code: Select all
$date = "2011-11-01";
$unix_time = strtotime($date);
$tomorrow = strtotime("+1 day", $unix_time);
echo date("Y-m-d", $tomorrow);