Home page
or browse popular tags
Access Functions

Sign up for the free email newsletter for new tips, tutorials and more. Enter your email address below, and then click the button.

Privacy Policy

RSS Twitter

Access: Date Function


In Access, the Date function returns the current system date.

The syntax for the Date function is:

Date ( )

Date returns a variant (date) containing a date stored internally as a Double.


Date()   returns a value such as '05.05.2005'

VBA Code

Dim MyDate
MyDate = Date

Now the MyDate variable would contain the current system date.

SQL query

You can also use the Date function in a query.

SELECT Date() AS Expr1
FROM Orders

If you'd like to see how it works, enter SQL statement and press Execute



Add To: Add to dzone dzone | Digg this digg | Add to del.icio.us del.icio.us | Stumble it stumbleupon

  • Comments

Copyright © 2005-2014             www.WebCheatSheet.com All Rights Reserved.