strtotime problem
| From: | toni baker | Date: | Mon, 04 Feb 2002 21:40:12 +0000 |
| Subject: | strtotime problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83463@lists.php.net to get a copy of this message | ||
$date1 = "10/12/2002";
$date1 = date("D M j Y", strtotime($date1));
$date2 = date("D M j Y");
$date3 = date("D M j Y", $date1);
print $date1."<br>";
print $date2."<br>";
print $date3."<br>";
The code above gives me the following output:
Fri Oct 11 2002
Mon Feb 4 2002
Wed Dec 31 1969
Is the strtotime() function causing this problem?
Thanks.
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com