On Friday 05 March 2004 20:11, Richard Davey wrote: > JW> 03 !== 3 > > You're right of course, it doesn't - but it also makes no difference > to his problem:
In this case it will make no difference, but if one were to use 09 (in the mistaken belief that it represents September then it would). > <?php > $m1 = 03; > echo date("D M d Y", mktime(0, 0, 0, $m1, 28, 2004)) . "<br>"; > $m2 = 3; > echo date("D M d Y", mktime(0, 0, 0, $m2, 28, 2004)); > ?> > > They both output the exact same thing. Which is? I get the correct output (ie Sun Mar 28 2004). But quoting your previous post, how did you get: "Sat Mar 27 2004 for me, which is exactly what it should"? As for the OP, if you're sure you're getting Wednesday instead of Sunday then you should probably hop over to bugs.php.net and whether anyone else is having the same problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Prepare for tomorrow -- get ready. -- Edith Keeler, "The City On the Edge of Forever", stardate unknown */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php