Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the Current Date

Status
Not open for further replies.

MahalKoCjet

Programmer
Mar 5, 2003
12
0
0
PH
Hi Gurus,

How could I get the current date using SQL in an access database?


I've seen a version of this in an Informix SQL:
ex."update date_setting set cur_date = today"

But this query doesn't run in an access database.
 
I forgot to mention DATE() returns the system date when used.
 
Hi,
this "DATE()" doesnt work.

What I'm referring to is how to retrieve the current date in a database using SQL.

Any Idea? Please Help

Tenyks
 
Code:
update date_setting set cur_date = date()

should work. If you want current time as well you could use

Code:
update date_setting set cur_date = now()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top