pphillips
01-31-2006, 01:51 PM
echo "next month: " . date("F", strtotime(date("Y-m-d", strtotime("January 31 2006")) . " +1 month"));
This outputs March but since it is January 31, it should echo February. It worked fine for the past several months until now. Any ideas? I'm stumped on this one. Seems to act the same with PHP 4.3.9 and PHP 5.0.4.
There is probably a better way to write this and that may be my problem. Any help would be greatly appreciated, thanks!
MODERATOR: Sorry for the double post. The site did not load after trying to post this and I clicked refresh, feel free to delete one.
This outputs March but since it is January 31, it should echo February. It worked fine for the past several months until now. Any ideas? I'm stumped on this one. Seems to act the same with PHP 4.3.9 and PHP 5.0.4.
There is probably a better way to write this and that may be my problem. Any help would be greatly appreciated, thanks!
MODERATOR: Sorry for the double post. The site did not load after trying to post this and I clicked refresh, feel free to delete one.
