Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: checking for valid date

by explorer (Chaplain)
on Jul 30, 2006 at 13:57 UTC ( #564622=note: print w/ replies, xml ) Need Help??


in reply to checking for valid date

DateTime modules have almost all responses...

use DateTime::Format::ISO8601; eval { $date = DateTime::Format::ISO8601->parse_datetime("20061730"); }; if ( $@ ) { print "ERROR: date not valid" };


Comment on Re: checking for valid date
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2014-10-02 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (52 votes), past polls