Complete step-by-step guide to convert Unix timestamps to human-readable dates. Learn the fastest methods used by 50K+ developers worldwide.
Result will appear here...
🔥 Popular: 1,200+ developers used this tool in the last 24 hours
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. It's widely used in programming and databases because it represents time as a simple integer.
// Convert Unix timestamp to date
const timestamp = 1704067200;
const date = new Date(timestamp * 1000);
console.log(date.toISOString()); // 2024-01-01T00:00:00.000Z
import datetime
# Convert Unix timestamp to date
timestamp = 1704067200
date = datetime.datetime.fromtimestamp(timestamp)
print(date.strftime('%Y-%m-%d %H:%M:%S')) # 2024-01-01 00:00:00
<?php
// Convert Unix timestamp to date
$timestamp = 1704067200;
$date = date('Y-m-d H:i:s', $timestamp);
echo $date; // 2024-01-01 00:00:00
?>
Need to convert timestamps in Excel or on mobile? Check out our specialized guides: