Convert Timestamp to Date Online

Use our free online tool to convert Unix timestamps into human-readable date and time formats in UTC and your local time zone.

Current Unix Timestamp: 1744292934

Sample Timestamps (Click any of them):

Facebook's launch date1104537600
New Year's Day 20211609459200
June 1, 20211622505600
Cristiano Ronaldo's Birth476438400

Convert Timestamp to date in Python, Java and more

# Python code to convert timestamp to date
import datetime

timestamp = 1609459200
date = datetime.datetime.fromtimestamp(timestamp)
print(date)  # Output: 2021-01-01 00:00:00

Whether you're working with databases, APIs, or log files — converting a timestamp to a readable date is a common need. This tool supports both 10-digit (seconds) and 13-digit (milliseconds) timestamps and gives you instant, copy-ready results.

What is a Unix Timestamp?

A Unix timestamp (or Epoch time) is the number of seconds since January 1, 1970 at 00:00:00 UTC. It's a standard format used in programming and data systems to track time.

  • 1704067200 → January 1, 2024, 00:00:00 UTC
  • 1609459200 → January 1, 2021, 00:00:00 UTC

Why Convert Timestamps to Dates?

  • 📅 Understand logs or API data in human-readable formats
  • 💻 Debug programs using timestamp-based logs
  • 🛠️ Work with time-sensitive database entries

Why Use This Timestamp Converter?

  • 🔁 Real-time dual conversion (timestamp ↔ date)
  • ⏱ Supports both seconds & milliseconds
  • 🌍 Shows both UTC & local time instantly
  • 📜 Output in custom formats like YYYY-MM-DD HH:mm:ss
  • 💡 Includes sample code for Python, JS, SQL, etc.

How to Convert a Timestamp to Date?

  1. Paste or type your timestamp (e.g., 1717027200 or 1717027200000)
  2. See the converted date and time in UTC and your local timezone
  3. Click to copy the result in your preferred format

Code Examples

Want to convert timestamps to date in code?

# Python
import datetime
datetime.datetime.fromtimestamp(1704067200)

# JavaScript
new Date(1704067200000).toLocaleString()

-- SQL (MySQL)
FROM_UNIXTIME(1704067200)

FAQ: Convert Timestamp to Date

What is the difference between a Unix timestamp and a normal date?

Unix timestamps are numeric representations of time (seconds since 1970), while normal dates are formatted strings like 2024-01-01 00:00:00.

Can a timestamp be negative?

Yes. Negative timestamps represent dates before January 1, 1970.

Do timestamps include time zones?

No. Timestamps are always in UTC. Time zone adjustments must be handled separately.

How do I convert milliseconds to seconds?

Just divide the 13-digit timestamp by 1000. For example, 1717027200000 / 1000 = 1717027200.