Data Type: Any.
Variable or expression containing a date or time.
Determines whether a variable’s value can be converted to a date.
If the expression passed to IsDate is a
True is returned;
otherwise, IsDate returns
IsDate uses the locale settings of the current Windows system to determine whether the value held within the variable is recognizable as a date. Therefore, what is a legal date format on one machine may fail on another.
IsDate is particularly useful for validating data input.