Unix Timestamp to Date Converter

Free Unix Epoch Time Converter for Developers and System Administrators

Unix Timestamp to Date Converter

Convert Timestamp to Date

How to convert a Unix timestamp to a date

Example — the form’s default 1577836800:

1900197020002038*21002020-01-01

1970 = 0 · *2038-01-19 03:14:07 = 2³¹ − 1, the signed 32-bit limit

1577836800 ÷ 86,400
= 18,262 days, remainder 0 s
1970-01-01 + 18,262 days
= 2020-01-01
0 s
= 00:00:00 UTC
Result (UTC)
01/01/2020, 12:00:00 am
date = 1970-01-01 + ⌊t ÷ 86,400⌋ days; time = remainder, UTC

See Also

FAQ

What time zone is the converted date shown in?

In UTC. A Unix timestamp has no time zone of its own — it is the number of seconds elapsed since 1 January 1970, 00:00:00 UTC — so to get local time you add your own offset to the result.

Why does my 13-digit timestamp convert to the wrong year?

Because it is in milliseconds, not seconds: JavaScript, Java and many APIs return milliseconds. Drop the last three digits (divide by 1,000) before converting — 1577836800000 is the millisecond form of 1577836800.

Can a Unix timestamp be negative, and how far does the converter go?

Yes: dates before 1970 are negative, and -2208988800 is 1 January 1900. This converter accepts values from -2208988800 to 4102444800, that is from 1900 to 2100. Beware that 32-bit signed systems still overflow at 2147483647 seconds — 19 January 2038.