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

Access date formats

Status
Not open for further replies.

AFKAFB

Programmer
Aug 22, 2005
26
US
Hi
I'm exporting an access file to txt.
I'm having problems with the date. Its been set to short date 'dd/mm/yyyy' but when viewed in the text file its shows as 'dd/mm/yyyy hh:mm:ss'

how do i suppress the hours, mins and seconds.
regards
chris
 
Why not using the Format function in your export query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Format(DateField,"mm/dd/yyyy")

-Patrick

Nine times out of ten, the simplest solution is the best one.
 
hi
am a tad lost here
the field is in a table which i'm exporting
where would i put the expression
Format(DateField,"mm/dd/yyyy")
 
If possible, always save data in a table unformatted. It's best to format only where the end user sees the data. In a blank column in your query, type this into the field box.

Date: Format([DateField],"mm/dd/yy")

This will format your datefield to short date.



-Patrick

Nine times out of ten, the simplest solution is the best one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top