note 10696 added to strtotime
| From: | kjackson at gpu dot srv dot ualberta dot ca | Date: | Thu, 18 Jan 2001 01:15:03 +0000 |
| Subject: | note 10696 added to strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9913@lists.php.net to get a copy of this message | ||
Given $date="January 2000"
strtotime($date) does not assume you mean "Jan 1, 2000". (In my opinion should assume you
mean the first when the date is not specified.)
Of course the simple way around this is:
strtotime("1 " . $date)
http://www.php.net/manual/en/function.strtotime.php