Now 0

Timestamp to date

Date to timestamp

Seconds –
Milliseconds –

All formats

Type a timestamp or pick a date.

Several timestamps

One timestamp or date per line. The result uses the chosen time zone and the unit selected above.

How to get it in code

What a Unix timestamp is

A Unix timestamp, also called epoch or POSIX time, is the number of seconds since January 1, 1970 at 00:00:00 UTC, not counting leap seconds. The same number holds in every time zone; the zone only changes how the date is shown.

JavaScript and Java usually use milliseconds (13 digits). Databases and logging systems sometimes store microseconds (16 digits) or nanoseconds (19 digits). Automatic mode recognizes the unit by the number of digits.

A negative timestamp is a date before 1970. Systems that store the value as a signed 32-bit integer stop on January 19, 2038, at 03:14:07 UTC (2147483647).