Working out the name of the day given a date
| From: | Jon Haworth | Date: | Tue, 16 Jan 2001 15:56:06 +0000 |
| Subject: | Working out the name of the day given a date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34829@lists.php.net to get a copy of this message | ||
Hello list,
Just a quickie. Does anyone have a code snippet for calculating the day of
the week given a date? I was hoping I could feed a string like "20010116" to
a function and have it return "Tuesday" - it doesn't have to be exactly this
date format that is used for the input, but I do need the name of the day on
the output!
I'm hunting around at the moment but I haven't had any joy so far, I thought
I'd see if anyone's already invented this wheel...
Cheers
Jon
Please visit us on the Internet:
http://www.witanjardine.co.uk
'The information included in this e-mail is of a confidential nature and is
intended only for the addressee. If you are not the intended addressee, any
disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege of
confidentiality'