Time & Date calculator

Date Difference Calculator

This calculator finds the calendar-day difference between two dates and can optionally count both endpoints.

Updated · Inputs stay in your browser

Enter your values

Earlier date.
Same as or later than start.
Adds one day to the elapsed difference.

Your values stay on this device. Nothing is sent to Calculate & Decide unless you deliberately use your device's share feature.

What this result means

This calculator finds the calendar-day difference between two dates and can optionally count both endpoints. The results panel explains the main number and the quantities that produced it, so you can check whether the estimate answers your real question.

Formula used

Elapsed days = (End date − Start date) ÷ 86,400,000. Inclusive days = elapsed days + 1.

Step-by-step calculation

  1. Validate every required value and reject values outside the stated field limits.
  2. Convert rates and time periods to the units required by the formula.
  3. Calculate with full JavaScript number precision; do not round intermediate values.
  4. Round only the displayed result and explain the practical meaning.

Worked example

From 1 August to 10 August there are 9 elapsed days. Counting both 1 August and 10 August gives 10 inclusive days.

Assumptions and limitations

  • Dates are Gregorian calendar dates without times.
  • UTC arithmetic avoids daylight-saving changes.
  • The end date is the same as or later than the start date.

How to use this calculator

  1. Choose a currency symbol when the tool uses money.
  2. Enter values in the units shown beside each field.
  3. Select Calculate, then read both the main result and interpretation.
  4. Change one uncertain input at a time to understand sensitivity.
  5. Use Copy result or Share only when you choose to move the result outside this page.

Common mistakes

  • Confusing elapsed days with inclusive calendar dates.
  • Including partial times when the question is date-only.
  • Reversing the start and end dates.

Frequently asked questions

Does the start date count?

Not for elapsed time. Select inclusive counting to include both start and end dates.

Are weekends excluded?

No. Every calendar day is counted.

Can the dates be the same?

Yes. The elapsed result is 0; the inclusive result is 1.

Methodology and sources

Formula definitions and edge-case behavior are documented on our Methodology page. No external data is fetched by this calculator.

See the site-wide calculation methodology and editorial standards. Formula errors can be reported through the error-reporting instructions.

Published and reviewed .