The TEST-FORMATTED-DATETIME function tests the validity of a specified date, time or combined-datetime according to the format specified. The type of this function is integer.
FUNCTION TEST-FORMATTED-DATETIME (argument-1, argument-2)
Returned Values
Using the following arguments generates a return value of 5, as the fifth character of argument-2 ("4") contains an incorrect value for the first digit of the month representation.
FUNCTION TEST-FORMATTED-DATETIME(âYYYYMMDD", "20124523")