Date to Unix Timestamp
Convert a calendar date and time in any time zone to a Unix timestamp in seconds and milliseconds.
What is the Date to Unix Timestamp?
Useful when writing queries, setting token expiries or scheduling jobs that expect epoch time.
How does it work?
The wall-clock time is resolved to an exact instant using the chosen zone’s offset (including DST), then expressed as seconds since the epoch.
Formula
Timestamp = (UTC time − 1970-01-01T00:00Z) ÷ 1000
Example
Midnight IST on 1 January 2026 is 1767205800.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 00:00:00 UTC on 1 January 1970 (the Unix epoch), ignoring leap seconds. It is the same everywhere in the world at a given moment.
Seconds or milliseconds?
Unix tools and most APIs use seconds (10 digits today). JavaScript and Java use milliseconds (13 digits). The converter detects the unit from the number of digits.
Related tools
Enable JavaScript to use this calculator.