RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: > 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 re

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Ignacio Vazquez-Abrams
On Tue, 16 Jan 2001, Jon Haworth wrote: > Hmmm. I did: > > $timestamp = mktime(0,0,0,$month,$date,$year); > $day = date("1", $timestamp); > > and it returns 1, no matter what the contents of $month, $date and $year > are. Did I miss something? > Yes, you're missing the fact that it's

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
] Sent: 16 January 2001 16:03 To: Jon Haworth Subject: Re: [PHP] Working out the name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: > Just a quickie. Does anyone have a code snippet for calculating the day of > the week given a date? I was hoping I cou

Re: [PHP] Working out the name of the day given a date

2001-01-16 Thread Ignacio Vazquez-Abrams
On Tue, 16 Jan 2001, Jon Haworth wrote: > 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

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
ROTECTED]] Sent: 16 January 2001 16:03 To: Jon Haworth Subject: Re: [PHP] Working out the name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: > Just a quickie. Does anyone have a code snippet for calculating the day of > the week given a date? I wa

[PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
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 th