Date to Unix Timestamp Converter

Convert a date and time into a Unix timestamp. Choose the output unit and whether to interpret the date as UTC.

Input: TextResult: Text

Text input

Run to see the result

Examples

The Unix epoch

Input

1970-01-01T00:00:00Z

Expected answer

0
Units
Seconds (s)
Treat as UTC
On
Show parsed datetime
Off
Y2K midnight UTC

Input

2000-01-01T00:00:00Z

Expected answer

946684800
Units
Seconds (s)
Treat as UTC
On
Show parsed datetime
Off
A leap-day timestamp

Input

2024-02-29T12:00:00Z

Expected answer

1709208000
Units
Seconds (s)
Treat as UTC
On
Show parsed datetime
Off
A millisecond boundary

Input

2025-01-01T00:00:01Z

Expected answer

1735689601
Units
Seconds (s)
Treat as UTC
On
Show parsed datetime
Off
A negative epoch timestamp

Input

1969-12-31T23:59:59Z

Expected answer

-1
Units
Seconds (s)
Treat as UTC
On
Show parsed datetime
Off

e.g. Mon 1 January 2001 11:00:00 becomes 978346800 A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).

Format reference: To UNIX Timestamp background and specification

Related tools

Browse date / time tools