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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Now() uses date AND time

Status
Not open for further replies.

camidon

Programmer
May 9, 2000
268
US
I'm using an SQL UPDATE string that is supposed to set one of my fields to the current date. The only problem is when I use "IssueDate = Now()" it appends both the date and the time into the field.

What is the proper syntax of Now() that will allow me to set the format to just put a short date in the field?
 
Will it give a short date in the form of mm/dd/yyyy???
 
I would use the DATE() function and I would also make sure that you format the field to hold values as a short date.

Hope that helps...

Terry M. Hoey
th3856@txmail.sbc.com

Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top