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

Setting date format in SQL query

Status
Not open for further replies.

lopster10

Technical User
Jan 26, 2009
17
DE
Hi Guys,

I have a simple Create table query but I need to set a field to a specific date format, that being dd mm yyyy.

If I just leave it as default "Date" then it returns as dd/mm/yy.

How can I set the data format within the Create table query string for that field? Or do I need to achieve this a different way?

Any help appreciated
 


Hi,

faq68-5827.

Since Date Serial values are NUMBERS, the "format" is irelevant except for display purposes.

Please post your query SQL to show your syntax.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
You can't set such format through DDL, you would need code.

But, as stated by SkipVought, format is for display purposes, not storage.

Here's a recent thread in one of the Access fora that might help, if "you insist" ;-) thread705-1528476

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top