VBScript » Functions » DateSerial

Version: 1.0

Syntax:
DateSerial(Year, Month, Day)
Year
The Year argument is the year as a string or integer.
Month
The Month argument is the month as a string or integer.
Day
The Day argument is the Day as a string or integer.

The DateSerial function converts the arguments into the variant of subtype Date.

Examples

Code:
<% =DateSerial(1943, 6, 26) %>
Output:
6/26/43
Language(s): VBScript
Code:
<% =DateSerial("43", "6", "26") %>
Output:
6/26/43
Language(s): VBScript

See Also: