note 92338 rejected from function.strtotime by thiago
| From: | thiago@php.net | Date: | Mon, 20 Jul 2009 14:32:24 +0000 |
| Subject: | note 92338 rejected from function.strtotime by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158509@lists.php.net to get a copy of this message | ||
Note Submitter: vaduvoiutibi at yahoo dot com
----
Anybody knows why this doesn't work?
echo date("M j Y H:i:mA")
echo $t=strtotime(date("M j Y H:i:mA"))
displays:
Jul 20 2009 16:59:07PM
1970-01-01 02:00:00
remove the A from the format and it will work. But I don't understand why it doesn't work
with the format having A(which is for the AM/PM).