Dates & Time

Days Between Dates Calculator

What this does

Count the total days between two calendar dates, with a weeks-and-days breakdown and an optional inclusive count of both endpoints.

Enter your details

Runs in your browser

Calculator inputs

Using the days between dates calculator

  1. 01

    Pick the start and end dates

    The tool expects the start date to come before the end date.

  2. 02

    Choose the counting style

    Exclusive counts elapsed time; inclusive counts every touched day, useful for rentals and schedules.

  3. 03

    Read the result

    The primary value is total days; the rows translate it into weeks and days.

Elapsed versus inclusive counting

“How long from Monday to Friday?” is four days elapsed but five days if you count each one. Deadlines and durations usually want the elapsed number; bookings, invoices and event spans usually want inclusive. Pick the style that matches your situation instead of mentally adding one afterwards.

Daylight saving cannot bite here

Because both anchors sit at UTC midnight, a 23-hour or 25-hour civil day never leaks into the arithmetic; the day count is always exact, unlike naive timestamp subtraction in local time.

Common uses

Contract notice periods, warranty windows, pregnancy week estimates, visa stay limits and countdown boards all reduce to this single subtraction once you fix the counting convention.

The math behind this calculator

Days = (end − start) ÷ 86,400,000 s (+1 when inclusive)

Both dates become UTC-midnight timestamps; subtracting them and dividing by the milliseconds in a day yields an exact whole-day difference immune to daylight-saving changes. The inclusive option adds one so both the first and last day count, which is what project planners usually want.

Assumptions & limitations

  • Calendar days only; working-day filtering lives in the working-days calculator.
  • Reversed ranges are rejected rather than silently negated.
  • Leap days are counted naturally because real calendar arithmetic is used.

Worked example

From 2026-01-01 to 2026-03-01 exclusive is 59 days (31 + 28); 8 weeks and 3 days. Choosing inclusive counting makes it 60.

Frequently asked questions

Is the end date included?
By default no; you get the elapsed difference. Switch the counting style to inclusive to count both endpoints.
Are weekends excluded?
No, this counts all calendar days. Use the working-days calculator to skip Saturdays and Sundays.
What about leap years?
Handled automatically; e.g. Jan 1 to Mar 1 of 2020 spans 60 days because February had 29 that year.

Related calculators