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

Exporting Date to Text

Status
Not open for further replies.

Esther7101

Programmer
Sep 24, 2003
16
0
0
US
Can someone please tell me how I can export dates without times in Access 97? I have tried the short format, but I still get the time. I am sure that I am missing something simple, but am really stuck.
 
Hi Esther7101,

Export them to where?

If you are exporting them as text then just formatting should be sufficient but if you are exporting them as Date values (to Excel perhaps) then time goes with them and the best you can do is make the time portion zero (equivalent to midnight at the start of the date).

Enjoy,
Tony
 
You should be able to use
Code:
DateValue(fieldname)


[COLOR=red][i]PeteJ[/i][/color]
(Contract Code-monkey)

[u]It's amazing how many ways there are to skin a cat[/u]
(apologies to the veggies)
 
What i do is write a Make Table Query based on the table you want to export. Create a field instead of your date field as follows

NewDate: Format([YourDate],"dd/mm/yyyy")

Then export the newly formed table to anything you like will get rid of the time.

Hope helps





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top