Converting Unix time to readable date format in MySQL

Unix time is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1st January 1970. Unix time is a single signed integer number in which Database records are timestamped.

If you wish to convert Unix time into a readable date format in MySQL simply add the following query statement:

FROM_UNIXTIME(TIMESTAMP/1000)

which results in YYYY-MM-DD HH:MM:SS.ssss