again,
John
"John Clarke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have used the following script successfully for a year now, but have
just
> found a problem with the date 2002-03-31.
> When I add 0 days t
;2002-03-31","2");
echo $nd
Regards
John Clarke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lampén" <[EMAIL PROTECTED]> wrote in message
000401c1636f$fd37d960$ba93c5c3@Niklas">news:000401c1636f$fd37d960$ba93c5c3@Niklas...
Great. :)
I've got PHP 4.0.6 on linux. You?
I think you should break the dates manually, it would be the most sure
way to do it.
Niklas
-
1."";
> print $date2."";
>
> print date("Y-m-d", strtotime($date1))."";
> print date("Y-m-d", strtotime($date2))."";
> ?>
>
> And the result was this:
> "
> Wed Dec 12 2001
> Sat Mar 1 2003
> 2001-12-12
&
a 2nd time might cause this problem,
as the first application was fine.
I have tested all possible combinations of strtotime but the year 2002
always goes back to 2001
Have also tried just 'strtotime($date1)' but same problem again.
Any help or comments would be greatly appreciated
5 matches
Mail list logo