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

MySQL Date/Time Format?

Status
Not open for further replies.

clarkmurray

IS-IT--Management
Nov 9, 2002
35
US
My hosting company has a utility which allows me to dump the tables of a MySQL database in csv format for Excel. However, I can't figure out how to translate the numbers in date/time fields. Can anyone help?
 
Date fields are yearmonth day in a string like 20050530.

Time should be hour:minute:second like 084654. The hour I believe is 24h time.

mysql TIMESTAMP (not a unix timestamp!) are these two concatenated together.

20050530084654

The above example is May 30, 2005 @ 8:46:54 am.
 
I messed up the color tags; the 54 in the time should be orange.

Oops.
 
Thanks, but I finally figured out what I was looking at was a Unix timestamp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top