Financial term · Reviewed August 17, 2026
Epoch day
Epoch day: A whole-number count of days since January 1, 1970. Date calculators use it internally, so date arithmetic reduces to integer subtraction. The Date Difference Calculator returns this figure from days between = end date − start date. At that calculator’s documented worked-example inputs the days between is 239; holding every other input steady, moving start date from December 18, 2025 to January 15, 2026 moves it from 225 to 253, a spread of 28.
Date arithmetic is horrible. Months have different lengths, leap years are irregular, and calendars have historical discontinuities. Converting both dates to a plain count of days since 1 January 1970 removes all of it, because subtracting two integers is something a computer cannot get wrong. Every reliable date calculator does this underneath.
| Term | Epoch day |
|---|---|
| Category | Date & Time |
| How it is found | Days between = end date − start date |
| Worked example | Days between: 239 |
| Computed by | Date Difference Calculator |
| Related terms | 0 defined in this glossary |
Before you rely on it
What to check
Watch for time zones. Convert in one zone and back in another and the answer can land a day off.
The common error
Where people go wrong with epoch day
Off-by-one errors in day counts, almost always from a timezone boundary instead of the arithmetic. Same-day comparisons across zones are where it shows up first.
Worked through
Epoch day in plain numbers
The count starts at zero on January 1, 1970. January 2, 1970 is day 1. January 1, 2000 is day 10,957, which is 30 years of 365 days plus 7 leap days. January 1, 2024 is day 19,723. To find the number of days between two dates, subtract their epoch days: 19,723 − 10,957 = 8,766. Add 8,766 days to the year 2000 start and you land at the start of 2024. Software stores dates this way because subtraction is trivial, sorting works and leap years take care of themselves once the count is built; the friendly date you see on screen is a formatted view of that one whole number.
Easily confused
Epoch day and its neighbours
An epoch day is not the same as a Unix timestamp, though the two are closely linked; a Unix timestamp counts seconds since the same starting moment, so epoch day equals the timestamp divided by 86,400, rounded down. It also differs from a Julian day number, which counts days from a much older reference point, and from day of year, which resets each January. Time zones matter for timestamps, since the same second is a different date in different places. An epoch-day count avoids that by counting calendar dates.
In real decisions
Where epoch day turns up
Date calculators, spreadsheets and databases use day counts internally. Date difference tools convert two dates to epoch days and subtract. Programmers store or transmit dates as whole numbers to save space and avoid formatting errors. Financial software counts days between payments this way; anyone building a schedule, an age calculator or a countdown relies on it, even without seeing it. When a spreadsheet shows a date as a five-digit number, it is showing a day count, though usually from a different starting date.
Know the edges
Where epoch day stops being reliable
Different systems choose different starting points. Spreadsheets use dates such as 1900 or 1904, and other software uses other zero days, so a number from one system means a different date in another; the 1970 convention is common, not universal. Calendar reforms and historical dates before the modern calendar need special handling. Time zones and daylight saving affect conversions from timestamps. Always confirm the reference date before exchanging raw day counts.
Quick answers
What people ask about epoch day
What is day zero? January 1, 1970 in the common Unix convention. Other systems use different starting dates, so confirm the reference before comparing numbers.
Why not just store the date as text? Text dates need parsing and vary by format, while a whole number makes sorting and subtraction simple and unambiguous.
How do I convert an epoch day to a date? Software libraries do it. By hand, add the days to January 1, 1970, accounting for leap years. Date calculators automate the arithmetic.
Put it to work
How epoch day is calculated
At the date difference calculator’s worked-example inputs, days between is 239, weeks between is 34.1. Moving start date from December 18, 2025 to January 15, 2026 moves that first figure from 225 to 253.
Open the Date Difference Calculator →
Date arithmetic follows the standard Gregorian calendar and does not account for leap seconds or calendar systems used before 1582.
Keep reading
Nearby in the glossary
- ← Enterprise value
- Equity →
- All 174 defined termsThe complete Free Calculators Online financial glossary.