How to convert 1300464000 to 2011-03-18 16:00:00 in MySQL?
1300464000
2011-03-18 16:00:00
Use the FROM_UNIXTIME() function in MySQL
FROM_UNIXTIME()
Remember that if you are using a framework that stores it in milliseconds (for example Java's timestamp) you have to divide by 1000 to obtain the right Unix time in seconds.
2.1m questions
2.1m answers
60 comments
57.0k users