Unicode Intrinsic Functions - IsGregorianDay Method

Test if the variable is a Gregorian day

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)


NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the string is a valid Gregorian Day


IsGregorianDay will return True if the variable can be converted to a valid Gregorian Day.
IsGregorianDay will often be used before AsGregorianDay to better handle potential errors.
Gregorian Day format is ---DD+HH:MM


In this example, #Variable is tested before being assigned to #Result
If (#Variable.IsGregorianDay)
   #Result := #Variable.AsGregorianDay

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020