Date to Epoch Converter
Going the other way from a calendar date to a Unix timestamp is essential whenever you need to store, compare, or transmit a moment in a compact, time-zone-neutral integer. The epoch is the number of seconds since 1 January 1970 UTC.
Pick a date and time below and the corresponding epoch value in seconds appears instantly, ready to copy into a database, API request, or config. The conversion runs locally in your browser.
Current epoch: 1782284433 s · 1782284433291 ms
Enter a valid value.
| Date (UTC) | Epoch (seconds) |
|---|---|
1970-01-01 00:00:00 | 0 |
2000-01-01 00:00:00 | 946684800 |
2021-01-01 00:00:00 | 1609459200 |
2025-01-01 00:00:00 | 1735689600 |
2030-01-01 00:00:00 | 1893456000 |
2021-01-01 00:00:00 UTC→1609459200Midnight on 1 January 2021 is 1,609,459,200 seconds after the epoch.
Frequently asked questions
How do I convert a date to a Unix timestamp?
Compute the number of seconds between your date and 00:00:00 UTC on 1 January 1970. This tool does it for you — just pick the date and time and read off the epoch value.
Does the result depend on my time zone?
The datetime you enter is interpreted in your local zone, then converted to the universal epoch, which is the same number everywhere. That is why epoch timestamps are convenient for storage.
Should I store dates as epoch timestamps?
Epoch integers are compact, easy to sort and compare, and free of time-zone ambiguity, so they are a popular storage format. Keep the zone information separately if you need to display local times.
Is the conversion private?
Yes. It is performed entirely in your browser, with no upload of the date you enter.