July 23, 2002 6:24 PM
Subject: [PHP] Getting the day if given a date
> Is there any way to get the day of the week given a date.
>
> For example if the date is the 22nd July 2003 I want to know if it will be
a
> Monday or Wednesday, etc..
>
> Any help appreciated.
>
>
>
&g
You can use the one or the combination of:
date();
mktime();
strtotime();
eg:
echo date("l", strtotime("22 July 2003"));
Check the php online doc for explanation of each function.
Rdb
On Tue, 2002-07-23 at 20:24, Cirkit Braker wrote:
> Is there any way to get the day of the week given a date.
On Tue, Jul 23, 2002 at 04:24:37PM -0800, Cirkit Braker wrote:
> Is there any way to get the day of the week given a date.
Check out the date() function.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
Campus sidewalks never exist as the straightest line between two points.
Is there any way to get the day of the week given a date.
For example if the date is the 22nd July 2003 I want to know if it will be a
Monday or Wednesday, etc..
Any help appreciated.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 matches
Mail list logo