Need help on increment date
| From: | Md Ashickur Rahman Noor | Date: | Thu, 24 May 2012 07:18:16 +0000 |
| Subject: | Need help on increment date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-317975@lists.php.net to get a copy of this message | ||
HI all
I need help to increment date in php. I found this code helpful
$date = strtotime("+1 day", strtotime("2007-02-28"));
>
> echo date("Y-m-d", $date);
>
>
But when My date is "2008-02-28" this code give output 2012-03-01. But it
should be 2008-02-29. Where I am getting wrong.
----------------------------------------------------------
Dedicated Linux Forum in Bangladesh <http://goo.gl/238Ck>
2048R/89C932E1 <http://goo.gl/TkP5U>
Volunteer, FOSS Bangladesh <http://fossbd.org/> &&
Mozilla
Reps<http://reps.mozilla.org>
01199151550