Easy Tutorial
❮ Func Createobject Func Isnumeric ❯

VBScript IsDate Function



The IsDate function returns a Boolean value indicating whether an expression can be converted to a date. If the expression is a date or can be converted to a date, it returns True. Otherwise, it returns False.

Note: The IsDate function uses local settings to detect if a string can be converted to a date (in all languages, "January" is not a month).

Syntax

Parameter Description
expression Required. The expression to be evaluated.

Example 1

Valid date:

Output for the above example:

Example 2

Invalid date:

Output for the above example:


❮ Func Createobject Func Isnumeric ❯