How can I tell MySQL to format a timestamp as a readable date before outputting a query result in a MySQL client/console?
+4
A:
Use FROM_UNIXTIME like this:
SELECT
FROM_UNIXTIME(timestamp_field) AS formatted_date
FROM
tablename;
Emil Vikström
2010-10-20 14:32:45