date
| From: | Norman Zhang | Date: | Thu, 02 May 2002 19:17:57 +0000 |
| Subject: | date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95742@lists.php.net to get a copy of this message | ||
Hi,
I am doing a test with the date function,
$mydate="2002-05-02"
$tdate=date("d M Y", "$mydate");
echo "$tdate"
I should expect 02 May 2002. But I get a strange result "31 Dec 1969". Why?
How can I correct this?
Regards,
Norman