May 13, 2021 VBScript
The VBScript DateValue function returns the Variant of the Date sub-type.
The DateValue function converts strings to Date.
Note: If the year portion of the date is omitted, the function uses the current year from the computer system date.
Note: If the date parameter contains time information, the time information is not returned. If the date contains invalid time information, a run-time error occurs.
parameter | describe |
---|---|
date | Required.A date between January 1 to 9999 to January 1 to 9999, or any expression that represents a date, time or date time. |
The above example output results: