IsDate Function
Tests if a numeric or string expression can be converted to a Date variable.
Notkun:
IsDate (Expression)
Skilagildi:
Bool
Viðföng:
Expression: Any numeric or string expression that you want to test. If the expression can be converted to a date, the function returns True, otherwise the function returns False.
Dæmi:
Sub ExampleIsDate
Dim sDateVar As String
sDateVar = "12.12.1997"
print IsDate(sDateVar) REM Returns True
sDateVar = "12121997"
print IsDate(sDateVar) REM Returns False
End Sub