⭐ 0

Date to Unix Timestamp Converter

Convert a local date and time in a chosen IANA zone to Unix seconds, or read a seconds or milliseconds value back.

Processed entirely in your browser — nothing you enter here is ever uploaded.

Processing... 0%

Result

About this tool

This page opens the converter focused on the opposite direction: starting from a specific date and time you have in mind and generating the Unix timestamp that represents it, in both seconds and milliseconds.

Enter the date, the time, and the time zone that date and time belong to — the same wall-clock time means a different instant, and a different timestamp, depending on which zone it is read in. Choosing the zone correctly is what makes the resulting timestamp accurate.

The generated timestamp appears immediately alongside an ISO 8601 representation of the same instant, useful for pasting straight into code, an API request, or a database query without a separate lookup step.

Example. The number 0 is 1970-01-01T00:00:00.000Z. The number 1700000000 is read as seconds and is 2023-11-14T22:13:20.000Z. The number 1700000000000 is read as milliseconds and is the same instant.

Limit. A finite number whose absolute value is below 100,000,000,000 is seconds. Any larger absolute value is milliseconds. A wall time that falls in a daylight-saving gap is rejected.