TOOLTIKI Lovable tool, really free
Date & time Timestamps

Date to Unix timestamp

Value
Direction
Epoch system
Result 1704067200
Readable Mon, 01 Jan 2024 00:00:00 GMT
ISO 8601 2024-01-01T00:00:00.000Z
JavaScript Date Mon Jan 01 2024 00:00:00 GMT+0000 (Coordinated Universal Time)
Date only 2024-01-01
Time only (UTC) 00:00:00
Unix seconds 1,704,067,200
Unix milliseconds 1,704,067,200,000
Windows FILETIME 133,485,408,000,000,000
.NET ticks 638,396,640,000,000,000
Excel serial 45,292
Mac HFS+ seconds 3,786,912,000
Note
Local · unmarked dates read as UTC
Advertisement
320 × 100

Converts a date into a Unix timestamp — the number of seconds since 1 January 1970 UTC. Paste ISO 8601, `2024-01-01 12:00:00`, or the string a JavaScript Date prints.

How to use the date to unix timestamp

1 Paste a date — ISO 8601, "2024-01-01 12:00:00", or the string a JavaScript Date prints.
2 Switch the direction to go the other way — the same page converts both ways.
3 All times are UTC — convert to your own zone separately if you need local time.

A Unix timestamp is a count of seconds from the epoch, 1 January 1970 UTC, and it carries no time zone at all. That is the point: an instant has one timestamp everywhere on earth, and the zone is applied only when it is displayed. Converting a date to a timestamp therefore needs to know which zone the date was written in, and a date with no zone marker is ambiguous by up to 26 hours.

This reads an unmarked date as UTC rather than as your local time. That is a deliberate choice and worth knowing, because JavaScript does the opposite for the space-separated form: new Date("2024-01-01 12:00") is local while new Date("2024-01-01T12:00Z") is UTC, and the two differ by your offset. Reading everything as UTC means the ISO form and the space form agree here, which is not true in a browser console.

The famous limit is 03:14:07 UTC on 19 January 2038, when a signed 32-bit timestamp overflows and wraps to 1901. Modern systems use 64 bits and are safe for about 292 billion years, but embedded devices, old file formats and some database columns still use 32 bits — and unlike Y2K the failure is silent, producing a date in the past rather than an error.

Questions

UTC, including the space-separated form. JavaScript reads that form as local, so the two can differ by your offset.

POSIX — seconds since the epochMDN — Date.parse()
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING