Easy Tutorial
❮ Func Trim Func Cstr ❯

VBScript DateValue Function


The DateValue function converts a string to a Date.

Note: If the year part of the date is omitted, the function will use the current year from the computer's system date.

Note: If the date parameter contains time information, the time information will not be returned. If the date contains invalid time information, a run-time error will occur.

Syntax

Parameter Description
date Required. A date between January 1, 100, and December 31, 9999, or any expression that can represent a date, time, or both.

Example

Example

The above example outputs:


❮ Func Trim Func Cstr ❯