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!

NEWBIE - MySql Date Field Question

Status
Not open for further replies.

Smeat

Programmer
Mar 27, 2004
193
GB
Hi All

I'm completely new to MySql to don't laugh too loud if this is a really stupid question.

I need to query data from a MySql database based on a date field but I notice all the date fields appear to be stored as numeric data types, see below:

Code:
Ticket_ID	Opened_Date	Closed_Date
1	        1115904879	0
2	        1116515087	1116515801
3	        1118401271	0

I was expecting to see dates as they are stored in SQL Server, i.e. 01/09/2007 11:23:47.

How do I translate the MySql date value into something more meaningful.

I.e. How do I convert 1115904879 into a dd/mm/yyyy hh:mm:ss format?

TIA

Smeat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top