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

Timestamp format

Status
Not open for further replies.

fluxdemon

MIS
Nov 5, 2002
89
US
I would like to remove the output format from a timestamp field. e.g. 20040526124015 instead of 5/26/2004 12:40:15 PM

Thanks in advance
 
The default output format of a TIMESTAMP field is yyyymmddhhmmss, so you don't need to do anything to it. For a DATETIME field, you could simply use SELECT datetimefield+0 to get your desired output.

-----
ALTER world DROP injustice, ADD peace;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top