Unix Epoch Day Converter
Count UTC calendar days since January 1, 1970.
How the Unix Epoch Day Converter Works
The Unix Epoch Day Converter returns the number of whole days between 1 January 1970 and a chosen date, the value databases call the epoch day.
Enter a date
Enter a calendar date.
Count from the epoch
The converter subtracts 1 January 1970 from the date in UTC.
Read the epoch day
The result is a whole number. Dates before 1970 return negative numbers.
Get seconds
Multiply the epoch day by 86,400 for the Unix timestamp at midnight UTC.
How the Count Is Calculated
The Unix Epoch Day formula counts days from 1970-01-01.
Epoch day = Date − 1970-01-01
Unix timestamp (midnight UTC) = Epoch day × 86,400- Epoch
- 1 January 1970, 00:00:00 UTC.
- Epoch day
- Whole days since the epoch.
- 86,400
- Seconds per day.
Example: 4 December 2026 is epoch day 20,791, and the Unix timestamp at midnight UTC is 20,791 × 86,400 = 1,796,342,400.
Worked Examples
The table lists epoch days and midnight timestamps for reference dates.
| Date (UTC) | Epoch day | Unix timestamp |
|---|---|---|
| 1 Jan 1970 | 0 | 0 |
| 1 Jan 2000 | 10,957 | 946,684,800 |
| 9 Sep 2001 | 11,574 | 1,000,000,000 (01:46:40) |
| 1 Jan 2026 | 20,454 | 1,767,225,600 |
| 4 Dec 2026 | 20,791 | 1,796,342,400 |
| 19 Jan 2038 | 24,855 | 2,147,483,647 (03:14:07) |
What the Tool Measures
A Unix Epoch Day Converter is a tool that turns a calendar date into a day count from 1 January 1970.
Signed 32-bit Unix timestamps overflow at 03:14:07 UTC on 19 January 2038, epoch day 24,855. Systems that store time in 64 bits avoid the "Year 2038 problem".
When to Use This Tool
There are 4 main uses of the Unix Epoch Day Converter, including database partitions and API debugging.
Database partitions
Data teams partition tables by epoch day.
API debugging
Developers check date fields sent as epoch days.
Excel and SQL imports
Analysts convert epoch days into readable dates.
Y2038 audits
Engineers check how close stored values are to the 32-bit limit.