Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Format user entered date?

by Sue D. Nymme (Monk)
on Aug 31, 2009 at 20:46 UTC ( [id://792462]=note: print w/replies, xml ) Need Help??


in reply to Format user entered date?

Date::Manip is good for accepting input in just about any conceivable format. It's big and slow, however.

If you have a specific input/output format in mind, your best bet is to use DateTime and one of the many DateTime::Format modules. If none of them suit you, you can roll your own patterns with Regexp::Common::time, and you can use Time::Format to output dates/times in any format you like.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://792462]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found