May 13, 2021 VBScript
The VBScript CDate function returns an expression that has been converted to The Date sub-type Variant.
The CDate function converts a valid date and time expression to a date type and returns the results. p >
Tip: Use the IsDate function to determine whether date can be converted to a date or time.
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 |
---|---|
date | Required.Any valid date expression (such as Date () or now ()). |
How to convert a string to a date:
How to convert a number with separators to a date:
How to convert a string to a time object using CDATE: