date(), strtotime(), Wed, Dec 31, 1969 ??
| From: | ROBERT MCPEAK | Date: | Fri, 03 May 2002 16:04:04 +0000 |
| Subject: | date(), strtotime(), Wed, Dec 31, 1969 ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95912@lists.php.net to get a copy of this message | ||
Running PHP3 on a Linux box and I've got trouble with date().
Here's the code:
$blah=2002-05-02;
$thedate = date("D, M d, Y", strtotime($blah));
$echo "$thedate";
Why is $thedate resolving to Wed, Dec 31, 1969.
Thanks!