STD.Date.IsValidGregorianDate( date )
date | A date value in the Date_t format. (An UNSIGNED4 containing a date value in YYYYMMDD format.) |
Return: | IsValidGregorianDateYear returns a BOOLEAN value. |
The IsValidGregorianDate function returns TRUE if the date is valid in the Gregorian calendar. The year must be between 1601 and 30827.
Example:
IMPORT STD; d1 := 19991122; d2 := 15130230; firstTest := STD.Date.IsValidGregorianDate(d1); // TRUE secondTest := STD.Date.IsValidGregorianDate(d2); // FALSE