CalcSeed

Date Difference Calculator

Find the exact number of days between two dates, plus the equivalent in weeks, months and years.

=
Quick answer: with the default inputs (2026-01-01, 2026-11-17), the days between is 320. At these inputs: weeks = 45.71, months (approx.) = 10.51. Change any input to update the result.
Days between
—

What this calculator measures

Enter two dates and this tool returns four numbers: the exact count of calendar days between them, and the same span restated as weeks, approximate months and approximate years. For the default pair — 1 January 2026 to 17 November 2026 — the results are 320 days, 45.71 weeks, 10.51 months and 0.8761 years. Only the day count is exact; the other three are conversions of that same number.

How the day count is calculated

Each date is converted to a timestamp in milliseconds, the start timestamp is subtracted from the end timestamp, and the difference is divided by 86,400,000 — the number of milliseconds in one day — then rounded to the nearest whole day. Both inputs are handled as pure calendar dates at midnight, so no clock time, time zone or daylight-saving shift can move the result.

days=end−start86400000days = (end - start) / 86400000

From the exact day count, the other units follow by simple division: weeks divide by 7, months divide by 30.437 and years divide by 365.25. The 30.437 figure is the average month length across the four-year leap cycle (365.25 ÷ 12), and 365.25 is the average year length once leap days are included. That is why months and years are labelled approximate: 320 days is 10.51 average-length months, but any real run of ten calendar months spans between 303 and 305 days depending on which months are involved.

Worked example with the default dates

2026 is a common year, so the day-of-year arithmetic is straightforward. Counting through the calendar: 31 (January) + 28 (February) + 31 (March) + 30 (April) + 31 (May) + 30 (June) + 31 (July) + 31 (August) + 30 (September) + 31 (October) = 304 days through 31 October, so 17 November is day 321 of the year. The difference between day 1 and day 321 is 320 days.

Turning 320 days into other units

Divide 320 by each unit length: 320 ÷ 7 = 45.71 weeks, which is 45 full weeks (315 days) plus 5 days; 320 ÷ 30.437 = 10.51 months; 320 ÷ 365.25 = 0.8761 years. If you change either date, re-check this arithmetic before trusting anything else on the page, because every other output is derived from the day count.

OutputValue at defaultsDerivation
Days320Exact calendar count, 1 Jan to 17 Nov 2026
Weeks45.71320 ÷ 7, i.e. 45 weeks + 5 days
Months (approx.)10.51320 ÷ 30.437
Years (approx.)0.8761320 ÷ 365.25

Inclusive or exclusive: the off-by-one trap

This result is a pure difference: 1 January to 2 January is 1 day. That is the number you want for hotel nights, storage days, accrued interest or any span measured from start to finish. If instead you are counting calendar dates touched — a banner live from 1 January to 2 January displays on 2 dates — add 1, giving 321 for the defaults. The error is invisible on long spans and glaring on short ones: on a two-date span, dropping one endpoint discards half the interval.

What moves the result

  • Swapping the dates: an end date before the start date returns a negative count, −320 for the reversed defaults, which is a useful sanity check but wrong as an answer.
  • A leap day inside the span: 1 January to 1 January the next year is 365 days, but a span crossing 29 February 2028 is 366.
  • Which units you read: months and years are leap-cycle averages, so a span of exactly 6 calendar months can display as 6.1 approximate months.
  • Inclusive versus exclusive counting, worth exactly 1 day on any span.

Calendar days vs working days

This page counts every calendar day, weekends included. Of the default 320-day span, 100 days fall on a Saturday or Sunday (the full-year 2026 total of 104 weekend days minus the 4 that land after 17 November), leaving 220 working days before holidays — a very different number if you are scheduling staff or billing day rates. For that question use the working days calculator, which walks the same calendar but skips Saturdays and Sundays.

Common mistakes to avoid

Reading approximate months as calendar intervals

The default span shows 10.51 months. The precise calendar statement is: 1 January + 10 months = 1 November (304 days), then 16 more days reach 17 November. If a contract or lease needs calendar months, count calendar months — do not divide by 30.437 or by 30. The same caution applies to years: 320 days is 0.8761 average years, but no single real year is 365.25 days long.

Mixing in time of day

Both inputs are dates, not timestamps. If the real question involves hours — a flight departing 22:40 on one date and landing 06:15 two dates later — a day count of 2 hides most of the information. Handle the hour-level part with a duration tool, then combine the two answers.

Frequently asked questions

How many days are between 1 January 2026 and 17 November 2026?

Exactly 320 days. 2026 is a common year, 17 November is its 321st day, and 321 − 1 = 320. Counting both endpoints inclusively gives 321.

How many weeks is 320 days?

45.71 weeks: 320 ÷ 7 = 45.714, which is 45 full weeks (315 days) plus 5 leftover days.

Does the result include the start and end date?

No, it is a difference. 1 January to 2 January is 1 day. To count both endpoints, add 1 to any result, so the default span becomes 321 days.

Why is a month treated as 30.437 days?

365.25 ÷ 12 = 30.4375. It is the average month length across the four-year leap cycle, which keeps the month conversion consistent with the 365.25-day year conversion.

How many days are in a year?

A common year has 365 days and a leap year 366. The average over the leap cycle is 365.25, which is what the years output divides by.

What happens if the end date is before the start date?

You get a negative day count — reversing the default dates returns −320 — plus matching negative weeks, months and years. Swap the dates to fix it.

Are leap years handled correctly?

Yes. The day count uses real timestamps, so a span containing 29 February counts the extra day. Only the approximate months and years use the 365.25-day average.

Why does 1 January to 17 November show 10.51 months?

In calendar terms it is exactly 10 months (1 January to 1 November, 304 days) plus 16 days. Dividing the full 320 days by the 30.437-day average month gives 10.51.

How do I count only business days between two dates?

Use a working-days calculator, which excludes Saturdays and Sundays. The default 320-day span contains 100 weekend days, leaving 220 working days before holidays.

Method and sources

Calculation basis

Calendar logic follows the proleptic Gregorian calendar (ISO 8601) with correct leap-year handling.

Last updated: November 17, 2026
Formula & data sources
  • Gregorian calendar day arithmetic.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Date Difference Calculator. https://calcseed.com/c/date/date-difference-calculator/
MLA 9"Date Difference Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/date/date-difference-calculator/.
ChicagoCalcSeed. "Date Difference Calculator." Last modified November 17, 2026. https://calcseed.com/c/date/date-difference-calculator/

Related calculators