Unit Converter
Date to Unix Timestamp Converter
Convert a calendar date with Z or a numeric UTC offset into Unix seconds and milliseconds, without guessing your device time zone.
Date to Unix Timestamp Converter examples
| Input | Expected result |
|---|---|
| 1970-01-01T00:00:00Z | 0 s |
| 2024-01-01T08:00:00+08:00 | 1704067200 s |
| 1969-12-31T23:59:59.999Z | −0.001 s |
| 2000-02-29T00:00:00Z | 951782400 s |
Supported units & limits
Requires YYYY-MM-DDTHH:mm:ss with optional 1–3 fractional digits followed by uppercase Z or ±HH:mm. Both the entered year and normalized UTC date must be in 0001–9999. This tool accepts numeric offsets through ±14:00; −00:00 is rejected as unknown. No date-only, missing-zone, IANA-name, 24:00 or leap-second input is accepted. It uses UTC calendar arithmetic without the device local zone, IANA database or external API. This is a defined subset of date-time notation, not a general ISO 8601 parser.
Common mistakes
A local clock time alone does not identify an instant. +08:00 means the local clock is eight hours ahead of UTC, so subtract eight hours. An explicit offset is not an IANA zone and does not validate a region’s DST rules. The two occurrences of a fall-back time require different offsets. Fractional negative seconds retain their sign: one millisecond before Unix zero is −0.001. Some systems expect milliseconds rather than seconds, so copy the matching result from the Date to Unix Timestamp Converter.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics, loaded through Google Tag Manager, to count page visits and see which tools are used; Google may set cookies for this. The hosting server may keep standard access logs when you load a page.
Conversion guide
Identify the instant before converting
Keep the date, time and offset together, for example 2024-01-01T08:00:00+08:00. Enter that complete value and inspect the normalized UTC date. Copy the seconds result, or select the exact millisecond value for systems that require it. Use Unix Timestamp to Date for the reverse conversion.
Date to Unix Timestamp Converter FAQ
Why must I include Z or an offset?
A clock reading without a zone is ambiguous. Z means UTC; a numeric offset identifies how far that clock reading is from UTC.
Does a numeric offset apply daylight saving automatically?
No. It is used exactly as entered. Use Time Zones to resolve an IANA local time, including missing or repeated DST times, before converting it here.
Are milliseconds rounded?
No. Up to three fractional second digits are preserved exactly. Finer precision is rejected instead of silently rounded.
Can I use dates before 1970?
Yes. Their timestamps are negative, down to UTC year 0001. Years 0001–0099 retain their actual year and are not remapped to the 1900s.