note 45635 added to function.date
| From: | Carlito at osu1 dot php dot net | Date: | Mon, 13 Sep 2004 16:15:38 +0000 |
| Subject: | note 45635 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76617@lists.php.net to get a copy of this message | ||
I am having a issue that no one can answer...
I am trying to convert the the date with the simple date() function but it prints out a different
date than what the variable is given.
Example:
$formatdate = date("M d Y", "2004-09-13");
echo $formatdate; # prints Dec 31 1969
Why would it print Dec 31 1969? Instead of Sep 13 2004
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45635
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45635&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45635&report=yes
Search -- http://master.php.net/manage/user-notes.php