How many days until a trip, a deadline or a due date? How long between two invoices? Counting on a calendar is slow and it's easy to be off by one.
Pick two dates. The calculator counts the days, converts them to weeks and calendar months, and counts the weekdays. You decide whether the end date counts.
How to use the days between dates calculator
- Choose a start date and an end date.
- Decide whether to include the end date. Leave it off for durations ("how long until"). Include it for things like hotel nights versus days, or a run of event days.
- Weekdays count Monday to Friday. Public holidays aren't subtracted, since they vary by country.
The formula
Dates are converted to day numbers and subtracted:
Worked example
January 1 to March 31, 2027
| January 1 to February 1 | 31 days |
|---|---|
| February 1 to March 1 | 28 days (2027 isn't a leap year) |
| March 1 to March 31 | 30 days |
| Total | 89 days, or 90 including March 31 |
89 days between the dates, which is 12 weeks and 5 days.
Tips from the job
- Leap years add February 29 every four years, except century years not divisible by 400. 2000 was a leap year. 2100 won't be.
- For contracts and legal deadlines, check how the document defines the count. Some exclude the first day, some include both.
Mistakes that cost people money
- Being off by one because it's unclear whether the end date counts.
Questions people ask
How do I count days between two dates?
Subtract the earlier date from the later one. The calculator does this exactly, accounting for month lengths and leap years.
Should I include the end date?
For a duration, such as days until an event, don't include it. To count every day in a range, such as days of a festival, include it.
Does it count business days?
It counts weekdays (Monday to Friday). Subtract public holidays in your country to get working days.
References
Figures on this page come from the following manufacturer data and trade references:
- Gregorian calendar and leap year rules: NIST Time and Frequency Division