note 85969 deleted from function.strtotime by danbrown

From: Date: Mon, 18 May 2009 02:17:20 +0000
Subject: note 85969 deleted from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155640@lists.php.net to get a copy of this message
Note Submitter: w_haigh at yahoo dot com ---- Historically, the "English" text to date parsers in PHP only accept the illogical American format of "mm/dd/yyyy". In this case, don't use strtotime, construct the date manually e.g : <?php $r = "29/9/2008"; $date = explode("/",$r); echo date("D d M",mktime(0,0,0,$date[1],$date[0],$date[2]))."\n"; ?>

« previous php.notes (#155640) next »