Days Between Dates Calculator
Count the exact number of days, weeks, months and years between any two dates.
Counting the time between two dates
Working out exactly how many days lie between two dates by hand is fiddly — months have different lengths and leap years get in the way. This calculator does it instantly, and also breaks the gap down into weeks, months, years and even weekdays.
It is handy for deadlines, notice periods, project timelines, age in days, holidays, and counting down to a big event.
The formula
The calculator converts both dates to a day count and subtracts one from the other, accounting for varying month lengths and leap years, then expresses the difference in days, weeks, months and years.
Worked example
| Item | Value |
|---|---|
| From | 1 January 2026 |
| To | 31 December 2026 |
| Total days | 364 |
| Weeks | 52 |
| Months | ~12 |
Frequently asked questions
Does it count both the start and end date?
It counts the number of days between the two dates. Whether the final day is included depends on how you think about the range, which the result makes clear.
Does it account for leap years?
Yes. The calculation uses actual calendar dates, so leap years and different month lengths are handled automatically.
Can I count only weekdays?
Yes, the calculator also shows the number of weekdays (Monday to Friday) in the range, which is useful for business or working-day counts.