|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-06-13 16:33 UTC] privat at thomasruecker dot at
[2011-06-13 16:54 UTC] dtajchreber@php.net
-Status: Open
+Status: Bogus
[2011-06-13 16:54 UTC] dtajchreber@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 14:00:01 2025 UTC |
Description: ------------ <code> $timestr="first wednesday june 2011"; echo date("d.m.Y",strtotime($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". Test script: --------------- $timestr="first wednesday june 2011"; echo date("d.m.Y",strtotime($timestr)); Expected result: ---------------- 01.06.2011 Actual result: -------------- 08.06.2011