VBScript » Functions » Date

Version: 1.0

Syntax:
Date

The Date function returns the current date as determined by your computer system.

Historically, a two-digit year (MM/DD/YY) was returned. However, courtesy of the millennium, a four-digit year is now returned (MM/DD/YYYY). The same applies to the DateValue function.

Examples

Code:
<% =Date %>
Output:
2/16/2001
Language(s): VBScript

See Also: