note 104390 added to function.strftime

From: Date: Mon, 13 Jun 2011 10:11:41 +0000
Subject: note 104390 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-180471@lists.php.net to get a copy of this message
Is the following a bug in PHP (5.2)? <code> $timestr="first wednesday june 2011"; echo strtotime(date("d.m.Y",$timestr)); </code> Then the result is the 08.06.2011, and not the 01.06.2011 as i expected. This happens whenever the "first" should be the 01.XX.YYYY Same thing happens with the "second","third","fourth","fifth". ---- Server IP: 69.147.83.197 Probable Submitter: 91.186.151.159 ---- Manual Page -- http://www.php.net/manual/en/function.strftime.php Edit -- https://master.php.net/note/edit/104390 Del: integrated -- https://master.php.net/note/delete/104390/integrated Del: useless -- https://master.php.net/note/delete/104390/useless Del: bad code -- https://master.php.net/note/delete/104390/bad+code Del: spam -- https://master.php.net/note/delete/104390/spam Del: non-english -- https://master.php.net/note/delete/104390/non-english Del: in docs -- https://master.php.net/note/delete/104390/in+docs Del: other reasons-- https://master.php.net/note/delete/104390 Reject -- https://master.php.net/note/reject/104390 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180471) next »