
IsDateTime
IsDateTime(number/string)
Returns True if the given Number or String value can be converted to a valid DateTime, and returns False otherwise.
Parameters
- number - A Number value or expression to be tested for convertibility to a DateTime value. It can be positive, negative or fractional. It is interpreted as a number of days from Jan 1, 1900.
- string - A String value or expression to be tested for convertibility to a DateTime value. Many forms are accepted. If the given String value and format are right DateTime value and format, the function will return true, otherwise false.
Return value
Boolean value, true or false.
Examples
IsDateTime(15.2) - Returns true since the given number argument is interpreted as the DateTime value 1900-01-15 04:48:00.
IsDateTime("Feb 23, 2004 15:23:25") - Returns true.
IsDateTime("2004-2-23") - Returns true.
IsDateTime("15:23:25") - Returns true.
