Date (function)

<< Click to Display Table of Contents >>

Date (function)

Date [()]

Returns the current system date in short date format.

The short date format can be changed using the Regional Settings applet in the Windows Control Panel.

The result is a Variant of VarType 8 (String).

See also: DateSerial, DateValue, Day, Month, Now, Time, TimeSerial, TimeValue, Weekday, Year

Example:

Sub Main

 MsgBox "Today is " & Date & "."

End Sub