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
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
]
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
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
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
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
6 matches
Mail list logo