Dates and time
Days between dates
Pick a start and end date. By default the count excludes the start day, the way most date math works. Turn on the end-day option to count both.
What this means
- January 1, 2026 to November 9, 2026 is 312 days, or 44 weeks, 4 days.
- Leap days are counted. Time zones and daylight saving changes are not, since only dates are compared.
What if
About this calculator
What this calculator does
It counts calendar days between two dates and breaks the span into weeks and into years, months, and days. If the end is before the start, the dates are swapped.
How it is calculated
days = end date - start date (+1 if the end day counts)
weeks = floor(days / 7) and the remainder in days
weekdays = Monday to Friday days from start to end, both included
How to read the result
Days is the main count. The years, months, and days breakdown uses calendar months, so it matches how people describe ages and anniversaries. When the start day does not exist in the month before the end date (for example the 31st), the start is treated as the last day of that month, the same end-of-month rule used by java.time Period.
Sources and method
Calendar math on the Gregorian calendar with dates only, so time zones and daylight saving do not apply. Unit tests cover leap years, month ends, and February 29. The years, months, and days breakdown follows the java.time end-of-month rule.
Questions
Does it count the first day?
It counts the days after the start. Turn on the end-day option to count both the start and end days.
Are leap years handled?
Yes. February 29 is counted in leap years.
Are holidays excluded from weekdays?
No. Use the business days calculator to subtract holidays.
Why is the default end date fixed?
Pages are built ahead of time. Change the end date to today or any date you need.