Re: 28th of March - PHP Problems!
| From: | Richard Davey | Date: | Fri, 05 Mar 2004 12:06:33 +0000 |
| Subject: | Re: 28th of March - PHP Problems! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179559@lists.php.net to get a copy of this message | ||
Hello Shaun,
Friday, March 5, 2004, 11:56:03 AM, you wrote:
S> The 28th of march this year is a Sunday, so why does the following script
S> output Wed?
S> <?php
S> $loop3_this_day = 28;
S> $loop3_this_month = 03;
S> $loop3_this_year = 2004;
S> echo date("D", mktime(0, 0, 0, $loop3_this_month, $loop3_this_day,
S> $loop3_this_year));
?>>
I changed the date to show a little more detail (date("D M d Y") and
it output: Sat Mar 27 2004 for me, which is exactly what it should.
Suggest you start looking for something specific to your
server/set-up.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html