Home > Archive > PHP Language > September 2004 > Problem with strtodate()
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with strtodate()
|
|
| Dawid Szałęga 2004-09-30, 11:24 am |
| Hi,
I do something like this:
$month = date('m', strtotime('2004-09-30 +5 months'))
This give me 03 (March), but 09 (September) + 5 months should give me 02
(February)
It's bug or I thing wrong?
--
Dawid Szałęga
| |
| Harrie Verveer 2004-09-30, 11:24 am |
| 30 february doesn't exist ;)
Dawid Szałęga wrote:
> Hi,
> I do something like this:
> $month = date('m', strtotime('2004-09-30 +5 months'))
>
> This give me 03 (March), but 09 (September) + 5 months should give me 02
> (February)
>
> It's bug or I thing wrong?
>
|
|
|
|
|