Date To Unix Timestamp Converter
Convert a date and time into a timestamp.
--
How Date To Unix Timestamp Converter Works?
The Date to Unix Timestamp Converter works by converting a local date and time to UTC and counting the seconds since January 1, 1970, 00:00:00 UTC.
- 1
Enter the date and time
Pick the date and time.
- 2
Pick the time zone
Choose the zone the date and time are in.
- 3
Convert to UTC
The converter subtracts the zone's UTC offset.
- 4
Count seconds
The result is the number of seconds since the epoch, with a milliseconds version.
Date To Unix Timestamp Converter Formula
The Date to Unix Timestamp formula is T = (UTC Date − 1970-01-01) in days × 86,400 + seconds into the day.
T = Days since epoch × 86,400 + h × 3,600 + m × 60 + s UTC time = Local time − UTC offset T (ms) = T × 1,000
- h, m, s:
- Hours, minutes, seconds (UTC)
- 86,400:
- Seconds per day
Example: Nov 25, 2026 00:00 UTC is 20,782 days × 86,400 = 1795564800. Midnight in Tokyo (UTC+9) on the same date is 9 hours earlier: 1795532400.
Date To Unix Timestamp Converter Conversion Table
The table converts midnight UTC on 8 dates into Unix timestamps.
| Date (00:00 UTC) | Days Since Epoch | Unix Seconds | Unix Milliseconds |
|---|---|---|---|
| Jan 2, 1970 | 1 | 86400 | 86400000 |
| Jan 1, 2000 | 10,957 | 946684800 | 946684800000 |
| Jan 1, 2020 | 18,262 | 1577836800 | 1577836800000 |
| Jan 1, 2025 | 20,089 | 1735689600 | 1735689600000 |
| Jan 1, 2026 | 20,454 | 1767225600 | 1767225600000 |
| Nov 25, 2026 | 20,782 | 1795564800 | 1795564800000 |
| Jan 1, 2027 | 20,819 | 1798761600 | 1798761600000 |
| Jan 1, 2030 | 21,915 | 1893456000 | 1893456000000 |
What is Date To Unix Timestamp Converter?
A Date to Unix Timestamp Converter is a tool that turns a calendar date and time into a Unix timestamp.
The time zone changes the timestamp. Midnight on November 25, 2026 is 1795564800 in UTC, 1795582800 in New York (UTC−5) and 1795532400 in Tokyo (UTC+9).
JavaScript and Java use milliseconds. Unix shells, PHP and Python's time.time() use seconds.
What are the uses of Date To Unix Timestamp Converter?
There are 5 main uses of the Date to Unix Timestamp Converter, including API queries, database inserts and cache expiry.
-
API queries
Developers pass start and end timestamps to APIs.
-
Database inserts
Developers store dates as epoch values.
-
Cache expiry
Engineers set expiry times for cached data.
-
Scheduled jobs
Engineers schedule tasks at an exact instant.
-
Testing
QA teams create fixed timestamps for tests.
Related Formats & Time Zones Tools
View All 141 Tools →Date Format Converter
Convert between specified date formats.
ISO 8601 Date Converter
Convert dates into or from ISO notation.
ISO 8601 Interval Generator
Format supplied dates as an interval.
Calendar Date Validator
Check month lengths, leap days, and date validity.
Ambiguous Date Format Checker
Identify dates with multiple possible interpretations.
Unix Timestamp To Date Converter
Convert timestamps using a selected time zone.