Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: checking for valid date

by planetscape (Canon)
on Jul 30, 2006 at 13:40 UTC ( #564619=note: print w/ replies, xml ) Need Help??


in reply to checking for valid date

Arguably the Wrong Way(TM) to do it... but it is possible to validate dates using regexes.

I mention this not to encourage such (ab)use, but simply as one example (of many) of things that make my jaw hit the floor, followed by: "You can do that?!"

So, for curiosity's sake only, I submit the following:

You may also wish to have a look at what Regexp::Common can do for you. And if, for some reason, the oftimes pathological regexes illustrated above aren't enough for you, there's also the Regular Expression Library - Dates and Times Category. ;-)

HTH,

planetscape


Comment on Re: checking for valid date

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-08-21 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (133 votes), past polls