Full Date & Time

-

ISO Format

-

Readable Format

-

Current Time (Updates every second)

Local: -
UTC: -
Unix: -

ℹ️ Time is based on your device's system clock. For internet-standard time, ensure your system clock is synchronized.

Key Features

🌍 Timezone Support

Convert timestamps across multiple timezones including local time and UTC.

⏱️ Bidirectional Conversion

Convert Unix timestamp to date and vice versa with ease.

📱 Real-time Updates

See current time in different formats and timezones instantly.

⚡ Multiple Formats

View results in ISO format, readable format, and full datetime.

Code Examples

Quick reference for working with timestamps in popular programming languages.

JavaScript / TypeScript

// Get current timestamp
const seconds = Math.floor(Date.now() / 1000);
const milliseconds = Date.now();

// Convert timestamp to date
const date = new Date(1704067200 * 1000);
console.log(date.toISOString()); // "2024-01-01T00:00:00.000Z"

// Format date in specific timezone
const options = { timeZone: 'Asia/Shanghai' };
console.log(date.toLocaleString('en-US', options));

Python

import time
from datetime import datetime, timezone

# Get current timestamp
seconds = int(time.time())
milliseconds = int(time.time() * 1000)

# Convert timestamp to date
date = datetime.fromtimestamp(1704067200, tz=timezone.utc)
print(date.strftime('%Y-%m-%d %H:%M:%S'))  # "2024-01-01 00:00:00"

# Parse date string to timestamp
date_str = "2024-01-01 08:00:00"
dt = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S")
timestamp = int(dt.timestamp())

Java

import java.time.*;
import java.time.format.DateTimeFormatter;

// Get current timestamp
long seconds = Instant.now().getEpochSecond();
long milliseconds = System.currentTimeMillis();

// Convert timestamp to date
Instant instant = Instant.ofEpochSecond(1704067200);
ZonedDateTime zdt = instant.atZone(ZoneId.of("Asia/Shanghai"));
System.out.println(zdt.format(DateTimeFormatter.ISO_ZONED_DATE_TIME));

// Parse date string to timestamp
LocalDateTime ldt = LocalDateTime.parse("2024-01-01T08:00:00");
long timestamp = ldt.atZone(ZoneId.of("Asia/Shanghai")).toEpochSecond();

Frequently Asked Questions

Getting Started

What is a Unix timestamp?

A Unix timestamp (also known as Epoch time) is a system for tracking time as a running total of seconds (or milliseconds) that have elapsed since 00:00:00 UTC on January 1, 1970. It is widely used in computing, APIs, databases, and programming because it provides a simple, timezone-independent way to represent points in time. Unlike human-readable dates, a Unix timestamp is just a single integer, making it easy to sort, compare, and calculate differences between dates. This timestamp converter supports both seconds and milliseconds with full timezone and ISO 8601 format output.

What's the difference between seconds and milliseconds?

A Unix timestamp can be expressed in either seconds or milliseconds. The seconds format (10 digits, e.g., 1716288000) is the traditional Unix timestamp commonly used in databases and older systems. The milliseconds format (13 digits, e.g., 1716288000000) is returned by JavaScript's Date.now() and many modern APIs. Both represent the same moment in time, just at different granularities. This converter handles both formats automatically — simply toggle between seconds and milliseconds mode, and the tool will display the correct date across all supported timezones.

How accurate is the conversion?

The conversion is accurate to the second. All calculations happen locally in your browser using JavaScript's Date API. The tool handles leap years, timezone offsets, and daylight saving time automatically.

Using the Converter

How do I convert Unix to Date?

To convert a Unix timestamp to a human-readable date, simply enter the timestamp (in seconds or milliseconds) into this converter, select your desired timezone from the dropdown menu, and the tool will instantly display the full date and time in multiple formats including Full Date & Time, ISO 8601 format, and a human-readable representation. In code, you can use new Date(timestamp) in JavaScript, datetime.fromtimestamp() in Python, or java.util.Date in Java. Always pay attention to whether your timestamp is in seconds or milliseconds before converting, as this affects the result by a factor of 1000.

How do I convert Date to Unix?

Select "Date → Unix" mode, enter your date and time using the datetime picker, and the tool will show both the seconds and milliseconds Unix timestamps. Click "Copy" to copy either value to your clipboard.

Why do I need timezone support?

The same Unix timestamp represents different local times in different timezones. For example, timestamp 1704067200 is midnight UTC, but 8:00 AM in Shanghai (CST). Timezone support helps you understand what a timestamp means in any location.

Examples

Example: Common Unix timestamps

Notable timestamps:

0           = 1970-01-01 00:00:00 UTC (Epoch)
1000000000  = 2001-09-09 01:46:40 UTC
1704067200  = 2024-01-01 00:00:00 UTC
2000000000  = 2033-05-18 03:33:20 UTC

Example: Convert timestamp to date

Input: 1704067200

In UTC: 2024-01-01 00:00:00

In New York (EST): 2023-12-31 19:00:00

In Shanghai (CST): 2024-01-01 08:00:00

Example: Date to timestamp

Date: 2024-06-15 12:30:00 UTC

Unix (seconds): 1718454600

Unix (milliseconds): 1718454600000

Programming & APIs

How do I get the current timestamp in JavaScript / Python?

JavaScript: Math.floor(Date.now()) returns the current timestamp in milliseconds. For seconds, use Math.floor(Date.now() / 1000).

const seconds = Math.floor(Date.now() / 1000);
const milliseconds = Date.now();

Python: time.time() returns the current timestamp in seconds as a float; use int(time.time()) for integer seconds. For milliseconds, use int(time.time() * 1000).

import time
seconds = int(time.time())

PHP:

$timestamp = time();

How do I convert timestamp to date in code?

JavaScript:

const date = new Date(timestamp * 1000);
console.log(date.toISOString());

Python:

from datetime import datetime
date = datetime.fromtimestamp(timestamp)
print(date.strftime('%Y-%m-%d %H:%M:%S'))

Common timestamp formats

ISO 8601: 2024-01-01T00:00:00.000Z RFC 2822: Mon, 01 Jan 2024 00:00:00 GMT SQL: 2024-01-01 00:00:00 Unix: 1704067200. The tool supports conversion between all these formats.

Timezones

What is UTC and why does timezone matter for timestamps?

UTC (Coordinated Universal Time) is the primary time standard by which the world regulates clocks and time. A Unix timestamp is always based on UTC — it represents the same moment everywhere on Earth, without any timezone offset. However, when displaying that moment as a human-readable date, you usually want to see it in your local timezone (e.g., Asia/Shanghai, America/New_York). This is why a good timestamp converter provides timezone support: it keeps the underlying Unix timestamp accurate while showing you the date and time as it would appear in your chosen location. The ISO 8601 standard also uses UTC as its reference point, making timezone-aware conversion essential for developers working with international systems.

What's the difference between GMT and UTC?

GMT (Greenwich Mean Time) and UTC are often used interchangeably, but technically UTC is more precise. For practical purposes, they represent the same time. UTC is the modern standard used in computing.

How does daylight saving time work?

Daylight Saving Time (DST) shifts clocks forward in summer. The tool handles this automatically - when you select a timezone like "America/New_York", it correctly applies DST rules based on the date you're converting.

🔒 All conversions are performed locally in your browser (JavaScript). Timestamp and date data are never uploaded to any server.