Fw: [PHP] Getting the day if given a date

2002-07-23 Thread Kevin Stone
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

Re: [PHP] Getting the day if given a date

2002-07-23 Thread Reuben D. Budiardja
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.

Re: [PHP] Getting the day if given a date

2002-07-23 Thread Jason Stechschulte
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.

[PHP] Getting the day if given a date

2002-07-23 Thread Cirkit Braker
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