Funny, I quickly tried this:
?
$date1 = 12/12/2001;
$date2 = 15/01/2002;
$date1 = date(D M j Y, strtotime($date1));
$date2 = date(D M j Y, strtotime($date2));
print $date1.br;
print $date2.br;
print date(Y-m-d, strtotime($date1)).br;
print date(Y-m-d, strtotime($date2)).br;
?
And the result
Even more funny...
I cut and pasted your code and I got;
Wed Dec 12 2001
Sat Mar 1 2003
2001-12-12
2001-03-01
What version of Php and OS are you using??
John
Niklas lampén [EMAIL PROTECTED] wrote in message
000301c16369$6817a320$ba93c5c3@Niklas">news:000301c16369$6817a320$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
-Original Message-
From: John Clarke [mailto:[EMAIL PROTECTED]]
Sent: 2. marraskuuta 2001 9:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] year 2002
n Clarke [mailto:[EMAIL PROTECTED]]
Sent: 2. marraskuuta 2001 9:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] year 2002 strtotime problem
Even more funny...
I cut and pasted your code and I got;
Wed Dec 12 2001
Sat Mar 1 2003
2001-12-12
2001-03-01
What version of Php and OS are you using??
John
4 matches
Mail list logo