A combination of the strtotime() function and date() or getdate() functions
should do what you want..
http://www.php.net/manual/en/function.strtotime.php

-Kevin

----- Original Message -----
From: "Cirkit Braker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 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.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to