devkult_
tools24converters26
home/convert/date-to-unix-timestamp

Convert Date to Unix Timestamp

Databases, APIs, and tokens often store time as a Unix timestamp. This converter parses an ISO 8601 date-time and returns the number of seconds since the 1970 epoch in UTC.

Example · DateUnix
Date input
1970-01-01T00:00:00Z
2021-01-01T00:00:00Z
2023-11-14T22:13:20Z
Unix output
0
1609459200
1700000000

How to convert Date to Unix

  1. Provide a date-time in ISO 8601, ideally with a Z or offset.
  2. It is parsed to milliseconds since the epoch.
  3. Divide by 1000 — 2021-01-01T00:00:00Z becomes 1609459200.

Frequently asked questions

What date format should I use?

ISO 8601 (e.g. 2023-11-14T22:13:20Z) is the most reliable. A trailing Z means UTC; an offset like +02:00 is also understood.

Why does a date without a zone shift?

A date-time with no zone is interpreted in the runtime's local time, so the resulting timestamp depends on that zone. Add Z to pin it to UTC.

Related converters