Days Between Two Dates Calculator
Count the days between two dates, with the same span in weeks, in years, months and days, and the number of Monday to Friday days.
Private: Everything runs in this page. Nothing you type is sent anywhere or saved.
On this page
Days between dates examples
| Start | End | Days | Years, months, days |
|---|---|---|---|
| 2024-02-28 | 2024-03-01 | 2 | 0 years, 0 months, 2 days |
| 2023-02-28 | 2023-03-01 | 1 | 0 years, 0 months, 1 day |
| 2000-01-01 | 2001-01-01 | 366 | 1 year, 0 months, 0 days |
| 1900-01-01 | 1901-01-01 | 365 | 1 year, 0 months, 0 days |
| 2023-12-31 | 2024-01-01 | 1 | 0 years, 0 months, 1 day |
Formula
Years, months and days are counted by adding whole months to the start date; a day that does not exist in a month moves to that month's last day.
How the days between dates works
- Step oneType the start date and the end date as year-month-day, for example 2026-03-15.
- Step twoTick the box if the end date should count as a day too, as in a hotel stay or a leave period.
- Step threeRead the number of days, and the same span in weeks, hours, calendar parts and weekdays.
What this tool does not do
- It uses the Gregorian calendar for every date, also before it was introduced in 1582, and handles the years 1000 to 9999.
- It ignores time zones, hours and daylight saving: it counts whole calendar days.
- It does not know public holidays, so the weekday count is not a working-day count.
Frequently asked questions
Does it count leap years?
Yes. A year is a leap year if it divides by 4, except years that divide by 100 but not by 400. So 2000 and 2024 are leap years, and 1900 and 2100 are not.
Is the end date counted?
By default the days are the difference between the dates, so Monday to Tuesday is 1 day. Tick the box to count both end days, which gives 2.
Which days are the weekdays?
Monday to Friday. Public holidays are not known to the tool, so they are counted as weekdays.