This documentation is archived and is not being maintained.

Date Data Type

Date variables are stored as IEEE 64-bit (8-byte) integers that represent dates ranging from January 1 of the year 1 through December 31 of the year 9999, and times from 0:00:00 (midnight) through 11:59:59 PM.

Date values must be enclosed within number signs (#) and be in the format M/d/yyyy, for example #5/31/1993#. If you convert a Date value to the String type, the date is rendered according to the short date format recognized by your computer, and the time is rendered according to the time format (either 12-hour or 24-hour) in effect on your computer.

The equivalent .NET data type is System.DateTime.

See Also

Data Type Summary | DateTime Structure | Double Data Type | Type Conversion Functions | Conversion Summary | Data Type Changes in Visual Basic | Efficient Use of Data Types