IsValidDate

STD.Date.IsValidDate( date , [yearLowerBound],[yearUpperBound] )

dateA date value in the Date_t format.
yearLowerBoundThe minimum acceptable year. Optional; defaults to 1800.
yearUpperBoundThe maximum acceptable year. Optional; defaults to 2100.
Return:IsValidDateYear returns a BOOLEAN value.

The IsValidDate function returns TRUE if the date is valid, both by range-checking the year and by validating each of the other individual components.

Example:

IMPORT STD;
d1 := 19631122;
d2 := 19990230;  
firstTest := STD.Date.IsValidDate(d1);  //d1 is valid
secondTest := STD.Date.IsValidDate(d2); //d2 is not valid