Update query and parameters

A

Amin

Hi,
I have a simple (hopefully) question. I want to set a field as today's date,
but not the time.

My query right now is the following:

UPDATE [mytable] SET DATEField = NOW();

Is there a simple command to not retrieve the time?
 
J

John W. Vinson

Hi,
I have a simple (hopefully) question. I want to set a field as today's date,
but not the time.

My query right now is the following:

UPDATE [mytable] SET DATEField = NOW();

Is there a simple command to not retrieve the time?

Use Date() instead of Now().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top