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!

timestamps, mysql and php

Status
Not open for further replies.

neilmurray

Technical User
Jan 18, 2005
32
GB
Hi,
I have a mysql database with a persons login date and time as a field and I have designated it as timestamp. I then want to get this info and plot it on a graph. I call for it from the database and it comes in this format.
200506210000000 which is 2005 june 21st 00:00:00. I have tried loads of different ways of now getting the php to see this as a date but am having no joy. Really what I want is to see it as a date and as seconds elapsed from say Jan 1st. Can any one help?

Thanks,

Neil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top