STD.Date.IsValidDate( date , [yearLowerBound],[yearUpperBound] )
date | A date value in the Date_t format. |
yearLowerBound | The minimum acceptable year. Optional; defaults to 1800. |
yearUpperBound | The 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