Date & Time Tools

Days Between Dates Calculator

Calculate the exact number of days, weeks, months, and years between any two dates. Optionally include or exclude the end date.

Days Between Dates Calculator — Online Calculator

Count days between dates

How many days between two dates sounds like subtraction and trips up almost everyone who does it by hand, because months refuse to be the same length. This calculator gives the exact count — plus the same span expressed in whole weeks and leftover days — with an option to count both endpoints.

How It Works

Both dates are anchored to UTC midnight, so time zones and daylight saving can never add or steal a day, and the difference is divided by exactly 86,400,000 milliseconds per day:

Days=∣End−Start∣86,400,000\text{Days} = \frac{|\text{End} - \text{Start}|}{86{,}400{,}000}

Three properties follow from that design. The count is order-independent — swap the dates and the answer is the same, because the difference is absolute. Leap days are counted automatically, since real calendar dates do the work. And the result decomposes as weeks = days ÷ 7 (whole) with the remainder shown separately, the form schedules and contracts usually want.

The inclusive toggle adds 1, counting both the first and last day. Which you want depends on the question: "how many days from Monday until Friday" is a difference (4); "how many days does a Monday-to-Friday event run" is a duration (5, inclusive). The toggle exists because English uses "between" for both.

| Output | Meaning | | --- | --- | | Total days | The exact day count (plus 1 if inclusive is on) | | Weeks | Whole 7-day weeks in the span | | Remaining days | Days left over after the whole weeks |

Worked Example

A lease from 1 September 2024 to 31 May 2025:

  • Difference: 272 days = 38 weeks and 6 days
  • Inclusive (lease active on both the first and last day): 273 days = exactly 39 weeks

Nine calendar months, three different month-length patterns, one leap February (2024's, which falls before the span — try 2023→2024 spans to watch a leap day add itself) — all handled by the date arithmetic rather than by you counting knuckles.

Choosing the Right Date Tool

This site's date tools divide the territory. This calculator counts raw calendar days between two dates. The Working Days Calculator removes weekends and holidays for business questions — deadlines quoted in "business days," payroll, SLAs. The Date Duration Calculator expresses the same span as years, months, and days (1 year, 2 months, 5 days) rather than a total day count, which is the form ages and anniversaries want — note that a total-months figure is deliberately not offered here, because "a month" is 28–31 days and any total would smuggle in an assumption. And Days Until counts forward from today to one future date, for countdown-style questions. Using the raw-count tool for a business-day question is the classic error: a 10-calendar-day span usually contains only 6–8 working days.

Limitations

The tool counts whole days between calendar dates; it does not handle times of day, so "48 hours from now" style questions (which cross date boundaries differently) belong to the countdown and duration tools. Dates must be valid Gregorian calendar dates in the standard picker format.

Frequently Asked Questions

Does it count leap years correctly?

Yes. Because the calculation runs on real calendar dates rather than a 365-day assumption, any 29 February inside your span is counted as a day — a span covering February 2024 is one day longer than the same span in 2025.

Why is there no months output?

Because months are not a unit — they are a calendar feature with four different lengths. A span of 90 days is not "3 months" in any exact sense. For the years/months/days expression of a span, use the Date Duration Calculator, which does proper calendar arithmetic; for exact totals, this tool's day count is the unambiguous figure.

Should I use inclusive counting?

Use it when both endpoints are part of the thing being measured: event durations, stays (a hotel booking from Friday to Sunday occupies 3 days inclusive — though hotels bill 2 nights, a distinction worth its own care), leases, and age-in-days questions. Use the plain difference for deadlines and elapsed time between two moments.

Related Tools