date problems
| From: | toni baker | Date: | Mon, 04 Feb 2002 20:03:44 +0000 |
| Subject: | date problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83452@lists.php.net to get a copy of this message | ||
$date1 = "12/12/2001";
$date1 = date("D M j Y", strtotime($date1));
print $date1."<br>";
When I execute the code above I get the following
output:
Tue Dec 11 2001 instead Wed Dec !2 2001
Why does this happen and how can I get the Dec 12
output? Thanks
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com