EN
MySql - how to convert unix timestamp to datetime?
7 points
Using MySql it is possible to convert UNIX timestamp to datetime in following way.
This example shows a new column with timestamp converted to a more readable form.
xxxxxxxxxx
1
SELECT *, FROM_UNIXTIME(`sent_at`) AS `sent_at_datetime`
2
FROM `messages`
3
WHERE `sender_name` = 'John';