note 105748 deleted from function.date-parse-from-format by danbrown
| From: | danbrown@php.net | Date: | Tue, 13 Sep 2011 14:22:54 +0000 |
| Subject: | note 105748 deleted from function.date-parse-from-format by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183138@lists.php.net to get a copy of this message | ||
Note Submitter: p2409 at hotmail dot com
----
For possibly the most common date format in the non-US English speaking world, it's easy to get
confused with the d's dd's m's an mm's.
To parse eg. 1/03/2011 use "d/m/YYYY" eg.
$workDt = date_parse_from_format("d/m/YYYY",$data[DATE_COL]);
Useing 'dd' (double D's) or 'mm' for (leading zero months are examples of
formats that won't work.