note 105748 added to function.date-parse-from-format

From: Date: Mon, 12 Sep 2011 11:06:34 +0000
Subject: note 105748 added to function.date-parse-from-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-183106@lists.php.net to get a copy of this message
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. ---- Server IP: 117.55.229.1 Probable Submitter: 58.161.42.254 ---- Manual Page -- http://www.php.net/manual/en/function.date-parse-from-format.php Edit -- https://master.php.net/note/edit/105748 Del: integrated -- https://master.php.net/note/delete/105748/integrated Del: useless -- https://master.php.net/note/delete/105748/useless Del: bad code -- https://master.php.net/note/delete/105748/bad+code Del: spam -- https://master.php.net/note/delete/105748/spam Del: non-english -- https://master.php.net/note/delete/105748/non-english Del: in docs -- https://master.php.net/note/delete/105748/in+docs Del: other reasons-- https://master.php.net/note/delete/105748 Reject -- https://master.php.net/note/reject/105748 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183106) next »