10.6.28 IsDateTime
IsDateTime will return true if the string can be converted to a valid datetime in the specified format. IsDateTime will often be used before AsDateTime to better handle potential errors.
Input Parameters
Format - Datetime format expected in the string variable. Allowable formats are:
CCYYDDMMHHMMSS
CCYYMMDDHHMMSS
HHMMSSDDMMCCYY
HHMMSSDDMMYY
ISO
Localized_SQL
SQL
TZ
Example
If (#string.IsDateTime(ccyymmddhhmmss)
#Datetime := #string.Asdatetime(ccyymmddhhmmss)
else
* Error processing
Endif
Ý 10.6 Alphanumeric/String Intrinsic Functions