Timestamp Problems

How to Convert a Unix Timestamp to a Date

A Unix timestamp counts the seconds since 1 January 1970 at 00:00:00 UTC. Converting one to a date is a daily task when reading logs, APIs and databases. The two things to get right are the unit and the time zone.

Last updated: 2 November 2026

Open Unix Timestamp Converter →

Step-by-step

  1. Copy the timestamp from your log, API response or database.
  2. Paste it into the Unix Timestamp Converter.
  3. Check the unit. Ten digits are usually seconds and thirteen are usually milliseconds. The tool reads 13 or more digits as milliseconds.
  4. Read the UTC time, ISO 8601 time and your local time.
  5. To go the other way, pick a date and time and copy the timestamp in seconds or milliseconds.

A worked example

The timestamp 1700000000 is 14 November 2023 at 22:13:20 UTC. The same moment in milliseconds is 1700000000000. Entering either value in the converter gives the same date.

Time zones

A Unix timestamp has no time zone. It identifies one moment. The date and time you see depends on the zone used to display it, so UTC is the safest way to compare times between systems. Local time uses your browser's zone.

The year 2038 problem

Systems that store a timestamp as a signed 32-bit integer can only count up to 19 January 2038 at 03:14:07 UTC. After that, the value overflows. Modern systems use 64-bit values, but older embedded software and databases can still be affected.

Quick conversions in code

In JavaScript, new Date(seconds * 1000) converts seconds to a date, and Math.floor(Date.now() / 1000) gives the current time in seconds. In Python, datetime.fromtimestamp(seconds, tz=timezone.utc) gives a UTC date.

USE THE TOOL

Finish the task with DevUtilityKits

Use the relevant online utility, check the result, and continue with your development workflow.

Open Unix Timestamp Converter →Open Timestamp to Date →Open Date to Timestamp →
FAQ

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds since 1 January 1970 at 00:00:00 UTC, known as the Unix epoch.

How do I convert a timestamp to a date?

Paste it into a converter that reads the unit and shows UTC and local time, or use new Date(seconds * 1000) in JavaScript.

Why is my date in 1970?

A value of 0 or a very small number points to the start of the epoch. A seconds value read as milliseconds also gives a date close to 1970.

What is the year 2038 problem?

It affects systems that store the time as a signed 32-bit number, which overflows after 19 January 2038 at 03:14:07 UTC.