CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > Date statement

Date statement

Sets the current system date.

The DateValue literal is displayed in short date format using the locale settings of your development system. To view the locale settings for your system, in Windows, select Start, Settings, Control Panel, Regional Options, Date. For example: in Australia, the short date format is represented as d/MM/yyyy.


Date = dateVariable


You must enclose a Date literal within number signs (# #), for example #31/5/1993#.

Related Functions

Time (statement)


Dim varCitectVBAReleaseDate
varCitectVBAReleaseDate = #01/07/2001#
Date = varCitectVBAReleaseDate
' sets system date to CitectVBA Release Date