Skip to content
sumwise

Days Between Dates Calculator

Days, weeks, months and weekdays between two dates.

By Sumwise Editorial TeamUpdated 1 references

Calculator

Result

Days

90 days

In weeks
12 weeks, 6 days
In calendar terms
3 months, 0 days
Weekdays (Mon to Fri)
65 weekdays

Public holidays are not subtracted.

In hours
2,160 hours

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

  1. Choose a start date and an end date.
  2. 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.
  3. 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:

days = end date − start date
inclusive days = days + 1
weeks = days ÷ 7, remainder in days

Worked example

January 1 to March 31, 2027

January 1 to February 131 days
February 1 to March 128 days (2027 isn't a leap year)
March 1 to March 3130 days
Total89 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:

  1. Gregorian calendar and leap year rules: NIST Time and Frequency Division