Formatting Date/Time

xcmav66

Registered User.
Local time
Today, 02:41
Joined
Oct 29, 2008
Messages
29
I know this is a simple question, but I'm having trouble figuring out how to do it. How do I format a date/time field in a query from "12/18/2008 12:00:00 AM" to just "12/18/2008"? Thanks.
 
Can we clarify whether you mean that you just wish to see the date Format([datefield], "dd/mm/yyyy") for uk format
or just work with the date

Datevalue(datefield)

Brian
 
Look at the Format() function in Help.
 
I tried the Format() function but it gave me an "Undefined function 'Format' in expression"

To clarify, I am just trying to truncate the time of day from the date.
 
If Format or Format$ are not defined, you have a broken reference somewhere. Search this forum for "References" to see how to fix that.
 
I'm not sure if I'm using it correctly though. I'm just typing Format([DateField], "mm dd yyyy") into the expression box when in the query design view. Is this correct?
 
If by expression box you mean the Field row then yes , Access will place Expr1: in front of it. So looks like a reference problem.

Brian
 

Users who are viewing this thread

Back
Top Bottom