our date packages have features for this
the calendar package has the following function
Function szIsValidDate Global String sDate Returns Boolean
validates a date string to be valid per the current date format set in the application
the dateform package has the following function
Function GetIsValidDate Returns Integer
to check if the contents of the form contain a valid date