Now() and Short Date format

Kenln

Registered User.
Local time
Yesterday, 20:44
Joined
Oct 11, 2006
Messages
551
I set a date variable to Now(). It stores the date and time. Is there anyway to have it only store the date itself.

Visually this is not a problem. But when the users edit the field it shows the date and time.

Thank you,
 
You can get only the date part if you use the Date() function instead of Now(). Also, the DateValue() function returns only the date part of a date variable.
 
Hi -

The Date() function returns the date only, e.g.:

? now()
9/11/2008 8:14:47 AM

? date()
9/11/2008

Refer to: http://support.microsoft.com/kb/q130514/ for an explanation of how Access stores dates and times.

HTH - Bob
 
This is soooo simple... if you know it.

It is the obvious that I have the most problems with.

Thank you
 

Users who are viewing this thread

Back
Top Bottom