FROM_UNIXTIME()
FROM_UNIXTIME() is a SQL function in the Date/Time Functions category. Converts a Unix timestamp back to a datetime. MySQL-specific. The syntax is FROM_UNIXTIME(unix_timestamp). It accepts unix_timestamp. It returns datetime. A typical example: SELECT FROM_UNIXTIME(1786050000); -- 2026-06-06 14:00:00 A close relative is NOW(), which returns the current date and time as a timestamp. A close relative is CURDATE(), which returns the current date without time. A close relative is DATE(), which extracts the date part from a datetime expression. More about this category: Date and time functions — NOW, DATE, EXTRACT, DATEDIFF, DATE_ADD, DATE_FORMAT. Related Date/Time Functions entries: NOW(), CURDATE(), DATE(), EXTRACT(), DATE_ADD(), DATE_SUB(), DATEDIFF(), DATE_FORMAT(). This page is part of the free SQL Reference documentation covering 762+ statements, functions, and clauses, each with syntax, parameters, return values, and examples for MySQL, PostgreSQL, SQL Server, and SQLite. You can try FROM_UNIXTIME() immediately in the SQL playground, or return to the SQL Reference homepage.