VBScript IsDate Function
Complete VBScript Reference Manual
The IsDate function returns a Boolean value indicating whether an expression can be converted to a date. It returns True if the expression is a date or can be converted to one; otherwise, it returns False.
**Note:** The IsDate function uses local settings to determine whether a string can be converted to a date (in all languages, "January" is not a month).
Syntax
IsDate(expression)
| Parameters | Description |
|---|---|
| expression | Required. The expression to evaluate. |
Example 1
Valid dates:
The example above produces the following output:
True
True
Try it »
Example 2
Invalid dates:
The example above produces the following output:
False
False
False
Try it »
Complete VBScript Reference Manual