|XP is just a number|
Re: checking for valid dateby GrandFather (Sage)
|on Jul 30, 2006 at 07:02 UTC||Need Help??|
There are a pile of Date manipulation modules available for Perl. The big hammer is Date::Manip. Possibly the way to validate your date string is first to chop it up assuming that the format is correct:
You can then check that the year, month and day are within the expected ranges and finally validate the full date by using Date::Manip.
DWIM is Perl's answer to Gödel