I'd give each day from 1/1/0001 a sequential number, and I'd test the
modulus of that day number divided by 7 to get the day of the week:
Given you have $yearnum $monthnum $daynum as input, you want a dayname out
of the array @monthdays defined below. Here's my untested [away from perl at
moment]
on 03/11/2001 04:52 AM, allan at [EMAIL PROTECTED] wrote:
by the way, the macperl.org list is soon to be defunct, having been replaced
by the same list @perl.org.
I forwarded my reply to you to the [EMAIL PROTECTED] list.
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Drago
on 03/11/2001 04:52 AM, allan at [EMAIL PROTECTED] wrote:
> hi
>
> i have three html dropdown boxes containg intergers which a user can
> select as input for a desired date like:
>
> 11 03 01
>
> i want to display the input above as:
>
> Sunday the 11th of march 2001
>
> the one that causes
hi
i have three html dropdown boxes containg intergers which a user can
select as input for a desired date like:
11 03 01
i want to display the input above as:
Sunday the 11th of march 2001
the one that causes the trouble is the weekday.
so my question is how can i extract/calculate the corr