Timestamp → Date
Date → Timestamp

Convert Timestamp to Date

📌 Try these examples:
TIMESTAMP
📅 UTC DATE & TIME
🌍 LOCAL DATE & TIME
📋 ISO 8601 FORMAT
⏱️ SECONDS
⏱️ MILLISECONDS

Convert Date to Timestamp

SELECTED DATE
⏱️ UNIX TIMESTAMP (SECONDS)
⏱️ UNIX TIMESTAMP (MILLISECONDS)

Last updated

What is a Unix Timestamp?

A Unix timestamp (also known as Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. This date is called the Unix epoch.

Timestamp Formats

Seconds (10 digits): 1609459200 = January 1, 2021, 00:00:00 UTC

Milliseconds (13 digits): 1609459200000 = January 1, 2021, 00:00:00.000 UTC

Our tool automatically detects which format you're using based on the number of digits.

Common Timestamp Formats Reference

  • 10 digits (e.g., 1700000000) — Unix timestamp in seconds
  • 13 digits (e.g., 1700000000000) — Unix timestamp in milliseconds (JavaScript)
  • 16 digits — Unix timestamp in microseconds
  • 19 digits — Unix timestamp in nanoseconds (Go, some databases)
  • Negative values — dates before January 1, 1970 UTC

Why Use the Timestamp to Date Converter

  • Auto-detects format — automatically identifies seconds, milliseconds, microseconds, and nanoseconds
  • Time zone support — shows UTC and local time simultaneously, supports all 400+ IANA time zones
  • Batch conversion — convert multiple timestamps at once from a list
  • Reverse conversion — convert dates back to Unix timestamps for queries and API calls
  • DST-aware — correctly handles daylight saving time transitions
  • No setup required — works instantly in the browser with no account or installation

Whether you are debugging logs, analyzing API responses, building time-based features, or investigating security incidents, the Timestamp to Date Converter at TechConverter.me makes working with Unix timestamps fast and effortless.

Convert Timestamps in Code

JavaScript
// JavaScript
// Timestamp to Date
const timestamp = 1609459200;
const date = new Date(timestamp * 1000); // Convert to milliseconds
console.log(date.toUTCString()); // Fri, 01 Jan 2021 00:00:00 GMT

// Date to Timestamp
const now = new Date();
const timestampSeconds = Math.floor(now.getTime() / 1000);
const timestampMilliseconds = now.getTime();
console.log('Seconds:', timestampSeconds);
console.log('Milliseconds:', timestampMilliseconds);
Python
# Python
from datetime import datetime

# Timestamp to Date
timestamp = 1609459200
date = datetime.fromtimestamp(timestamp)
print(date.isoformat())  # 2021-01-01T00:00:00

# Date to Timestamp
now = datetime.now()
timestamp_seconds = int(now.timestamp())
timestamp_milliseconds = int(now.timestamp() * 1000)
print(f'Seconds: {timestamp_seconds}')
print(f'Milliseconds: {timestamp_milliseconds}')

Common Use Cases

  • API Development: Convert timestamps from API responses to readable dates
  • Database Queries: Work with timestamp-based data in databases
  • Log Analysis: Convert server log timestamps to human-readable format
  • Data Migration: Transform date formats during data transfers
  • Debugging: Verify timestamp calculations in your code

Examples

Example 1: Converting a Basic Unix Timestamp

A developer sees the value 1700000000 in a database log and wants to know what date it represents:

Input:  1700000000 (Unix timestamp, seconds)

Output:
  UTC:   Wednesday, November 14, 2023 22:13:20 UTC
  ISO:   2023-11-14T22:13:20Z
  Local: November 14, 2023 at 5:13:20 PM EST (UTC-5)

The converter automatically detects that this is a second-precision timestamp (10 digits) and shows both UTC and local time.

Example 2: JavaScript Millisecond Timestamps

JavaScript's Date.now() and most browser APIs return millisecond timestamps (13 digits). Converting 1700000000000:

Input:  1700000000000 (millisecond timestamp)

Output:
  UTC:   Wednesday, November 14, 2023 22:13:20 UTC
  ISO:   2023-11-14T22:13:20.000Z
  Unix:  1700000000 (seconds)

The converter detects the 13-digit format and automatically divides by 1000 to get the correct date. No manual conversion needed.

Example 3: Analyzing Server Logs

A developer is debugging a production issue and finds these timestamps in the application log:

Log entries:
  [1699999800] ERROR: Database connection timeout
  [1699999860] INFO:  Retry attempt 1
  [1699999920] INFO:  Retry attempt 2
  [1700000000] INFO:  Connection restored

Converted:
  22:10:00 UTC — Error occurred
  22:11:00 UTC — First retry (60 seconds later)
  22:12:00 UTC — Second retry (60 seconds later)
  22:13:20 UTC — Connection restored (80 seconds later)

Converting the timestamps reveals the exact timeline of the incident. The database was down for 3 minutes and 20 seconds. This timeline is essential for the incident report and for understanding the impact on users.

Frequently Asked Questions

Enter your Unix timestamp (seconds or milliseconds since January 1, 1970) into the converter and click convert. The tool automatically detects whether your timestamp is in seconds or milliseconds and displays the human-readable date.

A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since January 1, 1970, 00:00:00 UTC (the Unix epoch). For example, timestamp 1609459200 represents January 1, 2021, 00:00:00 UTC.

Timestamps with 10 digits are in seconds (e.g., 1609459200). Timestamps with 13 digits are in milliseconds (e.g., 1609459200000). Our tool automatically detects the format.

Yes! This tool supports bidirectional conversion. Use the date picker to select a date and time, and the tool will generate the corresponding Unix timestamp in both seconds and milliseconds.