May 13, 2021 VBScript
The VBScript IsDate function returns a Boolean value that indicates whether the expression can be converted to a date.
The IsDate function returns a Boolean value that indicates whether the evaluation expression can be converted to a date. T rue is returned if the expression is a date, or can be converted to a date. Otherwise, false is returned.
Note: The IsDate function uses local settings to detect whether strings can be converted to dates ("January" is not a month in all languages).
parameter | describe |
---|---|
expression | Required.The expression to be calculated. |
Legal date:
The above example output results:
Illegal date:
The above example output results: