Re: [MacPerl-AnyPerl] input to formatted date

[email protected] ("Scott R. Godin") Sun, 11 Mar 2001 05:04:20 -0500
Newsgroups perl.macperl.anyperl
Message-ID <B6D0B7D4.25EA%[email protected]>
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 the trouble is the weekday.
> so my question is how can i extract/calculate the correct weekday
> based on arbritary user-input in the format shown above?


This is just a guess since I've never looked at it myself, but have you
checked the Date::Calc module? This sort of task seems to be something that
would be appropriate for a module of said name.

I could be wrong, but it's worth a quick investigation via CPAN shell's
'readme Date::Calc' ... I'm just too lazy to do it for you ;-)

-- 
Scott R. Godin            | e-mail : [email protected]
Laughing Dragon Services  |    web : http://www.webdragon.net/