Days Between Dates: How to Count Inclusive Days and Workdays

Author•November 4, 2026•Calculators•3 min read

Quick answer

“Days between” can mean the date difference, the inclusive total, or the number of workdays. This guide explains each definition with examples and shows how to avoid the common off-by-one errors.

Open Days Between Dates Calculator

Three different answers to the same question

If you ask two people “how many days are between 10 February and 17 February?”, you may get 7 or 8. Both can be right — they are using different definitions. Before calculating, decide which one you need:

  • Date difference: end date minus start date, excluding the start date. This is the usual countdown meaning.
  • Inclusive days: count both the start and end date, which is the difference plus one.
  • Workdays: count Monday to Friday only, optionally excluding public holidays and adding make-up workdays.

The basic calculation

The safest method is to convert each date to a day number and subtract. You can also count month by month. For 4 November 2026 to 6 February 2027:

  • November: 30 − 4 = 26 days remaining
  • December: 31 days
  • January: 31 days
  • February: 6 days

Total: 26 + 31 + 31 + 6 = 94 days. That is the date difference, excluding 4 November. The inclusive total is 95 days.

Mistake 1: mixing up difference and inclusive days

From one date to the same date, the difference is 0 but the inclusive total is 1. Attendance sheets often need the inclusive count, while countdowns need the difference. Adding or subtracting one in the wrong place is the most common source of errors.

Rule of thumb: if the start day has not finished yet and you are asking “how long until”, use the difference. If both endpoints are part of the period being counted, use inclusive days.

Mistake 2: ignoring leap years and month lengths

Leap years add 29 February, so any range crossing that date gains one day. Month lengths also vary between 30 and 31 days, so estimating every month as 30 days will drift.

When coding or using a calculator, work with UTC day numbers rather than local timestamps. That avoids daylight-saving transitions and timezone offsets that can shift a result by one day.

Mistake 3: treating calendar days as workdays

Thirty calendar days do not mean thirty workdays. A range usually contains eight or nine weekends, plus possible public holidays. To count workdays properly:

  1. Count Monday to Friday in the range;
  2. Subtract public holidays that fall inside it;
  3. Add back weekend days that are designated make-up workdays.

The Days Between Dates Calculator does all three. Paste holidays and make-up workdays into the advanced section, one YYYY-MM-DD per line.

Check your result online

Open the calculator and choose a start and end date. You get the difference, inclusive days, workdays, weekends, full weeks plus remainder, a years/months/days breakdown, and milestone dates at +7, +30, +100, +365 and +1000 days. If the start is later than the end, the dates are swapped automatically.

FAQ

How many days are there from 1 January to 31 January?

The difference is 30 days and the inclusive total is 31 days. Workdays depend on the year and holidays.

Does Excel’s DATEDIF match this?

DATEDIF with the “d” unit returns end minus start, matching the date difference here. It does not handle workdays or holidays.

Why is a one-week range eight inclusive days?

Because both endpoints are counted. From 10 February to 17 February is 7 days apart but spans 8 calendar dates.

Can I calculate dates far in the past or future?

Yes. The calculator uses integer day numbers and supports any valid Gregorian date.

Summary

Decide on your definition first, then handle leap years and month lengths, and finally separate calendar days from workdays. The Days Between Dates Calculator returns all the common counts at once, so you can pick the right one without manual arithmetic.

Recommended

Try our Days Between Dates Calculator

Try our professional online tool now. Completely free, no registration required.

Try it now
Share this article

Tangyuan Toolbox

Experienced content creator, dedicated to sharing practical online tools and tutorials.

View all articles →

Related Articles

Comments coming soon

Stay tuned