I have a date/time in a variable like "12/30/2002 15:00" and I need 
to validate it.  The time might not appear there.  I can be sure 
of the format, but I want to reject things like month 13, day 32,
February 30, hour 24, wrong leap year stuff, etc.  What is the best 
way to validate a date and time?  If there's a routine that can validate 
just the date I can parse it off and validate the date myself.  I 
could code the whole thing pretty easily myself, but I'm sure someone 
has already done it.  Date::Manip has some routines that deal with 
dates and validation, but I didn't see anything specific that just 
returns true or false if a date is valid.

Thanks,

    -John







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to