Formula
Days = day number(end) − day number(start)Inclusive count = Days + 1
- day number
- days since a fixed reference date, so every month and leap year is counted exactly
How it works
Each date is converted to a serial day number, and the difference between the two numbers is the day count. This is the same as counting how many midnights pass between the dates, so “today to tomorrow” is 1 day.
Turn on “Include the end date” when both dates are part of the span — for example a hotel booking counted in days on site, or a project that runs from Monday through Friday (5 days, not 4).
Worked examples
Countdown to a date
From September 27 to December 25, 2026.
- Start date
- 2026-09-27
- End date
- 2026-12-25
- Include the end date (add 1 day)
- No
- Days
- 89
Length of an event
A camp from Monday July 6 through Friday July 10 lasts 5 days when both ends count.
- Start date
- 2026-07-06
- End date
- 2026-07-10
- Include the end date (add 1 day)
- Yes
- Days
- 5
A full leap year
2028 is a leap year, so it contains 366 days.
- Start date
- 2028-01-01
- End date
- 2029-01-01
- Include the end date (add 1 day)
- No
- Days
- 366
Weekdays are not business days
The weekday count excludes Saturdays and Sundays only. Public holidays vary by country and employer, so subtract them yourself if you need working days.
Why months are not a fixed number of days
Months range from 28 to 31 days, so the years-months-days breakdown counts whole calendar months from the start date rather than dividing by 30.
Related calculators
- Date Calculator: Add or Subtract Days, Weeks, Months, YearsFind the date a number of days, weeks, months, or years before or after a given date.
- Age CalculatorFind your exact age in years, months, and days — or anyone's age on any date — plus total days lived and your next birthday.
- Business Days CalculatorAdd or subtract working days from a date, or count business days between two dates, skipping weekends and U.S. federal holidays.
- Time Duration CalculatorFind the hours and minutes between two times, including overnight shifts, minus any break.
Last reviewed: