in reply to Reaped: Check if string is a valid date

Consider using the modules Date::Parse and Date::Calc (especially its check_date routine).