Days Between Dates Calculator

Find the exact civil-calendar distance between any two valid dates. Compare elapsed days with an inclusive date range, preserve the direction entered, and inspect complete weeks, calendar years-months-days, weekdays, weekends, leap days, ISO week context, and interval milestones without daylight-saving timestamp drift.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Compare two valid civil dates without timestamp or daylight-saving drift. The workspace separates elapsed days from an inclusive date range, then explains direction, exact calendar span, weekdays, weekends, leap days, and interval milestones.

Civil datesReal Gregorian dates only
Day countUTC calendar ordinals
Two conventionsElapsed and inclusive

Set the two calendar boundaries

Enter the dates in either order. The result keeps your direction visible while interval totals use the earlier and later boundaries consistently.

Date range
Boundary A
Either date may come first; the result preserves the direction you entered.
Boundary B
Use a complete Gregorian calendar date.

Choose what the day count represents

The elapsed interval excludes the second boundary. An inclusive range counts both boundary dates and is always one larger.

Endpoint rule
General calendar measurement, not an official deadline rule

A law, court, agency, contract, school, or employer may exclude a trigger day, extend a weekend endpoint, skip holidays, or define a filing time and time zone. Verify that rule before relying on a consequential date count.

What Is a Days Between Dates Calculator

A days between dates calculator measures the distance between two civil dates. It answers both an elapsed-time question, such as how many calendar days have passed from January 1 to January 8, and a date-range question, such as how many dated entries appear when January 1 through January 8 are both included.

Those questions differ by one. The elapsed interval is 7 days because seven midnight boundaries separate the dates. The inclusive range contains 8 dates because it counts both endpoints. This page displays both values instead of hiding the endpoint convention inside one unexplained total.

How to Use the Days Between Dates Calculator

For a legal, tax, court, contract, employment, benefits, school, or agency deadline, identify the governing rule before choosing a convention. General calendar measurement cannot decide whether that rule excludes a trigger day, skips holidays, or extends a weekend endpoint.

  1. Enter a complete first date and second date. Either one may be earlier.
  2. Choose Elapsed interval when the second boundary should not be counted as an additional date.
  3. Choose Inclusive date range when both boundary dates belong to the range you are counting.
  4. Select Measure date interval and compare the two headline conventions before using the selected total.
  5. Review the exact calendar span, weekday and weekend split, leap-day count, endpoint context, and milestone timeline.

Elapsed Days Versus an Inclusive Date Range

Elapsed counting measures completed calendar-day transitions. A date compared with itself has an elapsed gap of zero; the following date is one elapsed day later. Inclusive counting treats each boundary as a member of the range, so the same date produces one counted date and consecutive dates produce two.

The weekday and weekend totals follow the selected convention. Under elapsed counting, the earlier boundary is included and the later boundary is excluded. Under inclusive counting, both are included. Their sum always equals the selected counted-date total.

Endpoint conventions for January 1 to January 8
ConventionBoundary treatmentResultTypical question
Elapsed intervalInclude earlier, exclude later7 daysHow much calendar time passed?
Inclusive rangeInclude both dates8 datesHow many dated days are in the range?
Same date, elapsedNo completed transition0 daysHow much time separates the dates?
Same date, inclusiveCount the one selected date1 dateHow many dates are selected?

Days Between Dates Formula and Calendar Method

Each input is validated as a real proleptic Gregorian date. The calculator then converts the year, month, and day to a UTC calendar ordinal. Subtracting ordinals measures civil-date boundaries without dividing local timestamps, so a daylight-saving transition does not turn neighboring dates into a misleading 23-hour or 25-hour fraction.

The exact years-months-days span is calendar arithmetic, not a conversion from average years or months. It advances complete anniversary years, then complete calendar months, then reports the remaining calendar days. Approximate month or year totals are intentionally not substituted for that exact decomposition.

Formula guide
  • Signed day difference = ordinal(second date) - ordinal(first date)
  • Elapsed calendar days = absolute value of signed day difference
  • Inclusive date count = elapsed calendar days + 1
  • Complete weeks = floor(elapsed calendar days / 7)
  • Remaining days = elapsed calendar days modulo 7

Exact Calendar Span, Complete Weeks, and Fixed-Unit Equivalents

One interval can be described in several correct ways. Complete weeks and remaining days partition the elapsed-day total into seven-day blocks. The exact calendar span describes the same boundaries as complete years, complete months after those years, and remaining days. These representations are not interchangeable with average-month division.

Hours and minutes are shown only as 24-hour equivalents of elapsed calendar days. They are not a timestamp duration and do not account for local clock changes, time zones, leap seconds, or a time of day. Use a date-and-time system when those details matter.

Date Difference Examples

From March 1 to March 2, 2026, the elapsed result is 1 day and the inclusive result is 2 dates. Reversing the inputs produces a signed direction of minus 1 while the absolute distance remains 1. This makes order visible without turning a distance into a negative quantity.

From January 31 to March 31, 2026, the elapsed gap is 59 days. Under the displayed anniversary-first calendar method, the exact span is 2 months and 0 days because February's shorter month is handled as a valid calendar boundary before the next complete month is tested.

How to Read Weekdays, Weekends, Leap Days, and Milestones

Weekday means Monday through Friday and weekend means Saturday or Sunday. These are calendar classifications, not business-day totals: public holidays remain weekdays unless they fall on a weekend. The separate Business Days Calculator is appropriate when custom holidays need to be removed.

The leap-day row counts February 29 dates contained under the selected endpoint convention. The milestone table marks the earlier boundary, 25 percent point, midpoint, 75 percent point, and later boundary. Fractional milestone positions round down to a complete elapsed day, so the table never invents a time of day.

Features and Benefits of the Date Difference Calculator

  • Strict validation rejects impossible dates rather than silently rolling them into another month.
  • Forward, backward, and same-date input order remains explicit.
  • Elapsed and inclusive totals appear together for a direct endpoint check.
  • Exact calendar span, complete weeks, weekdays, weekends, and leap days use one consistent interval.
  • ISO week-year and day-of-year context are shown for both boundaries.
  • A milestone table makes a long date range easier to audit visually.
  • All arithmetic runs privately in the browser without an account.

Common Uses and When to Choose Another Calculator

Useful scenarios include measuring project windows, travel periods, warranty spans, study schedules, subscription periods, event countdowns, record gaps, and research intervals. Use the Age Calculator when the question is completed age from a birth date, the Date Calculator when adding an interval to one date, and the Business Days Calculator when weekdays and custom holidays must control the answer.

A days-between calculator does not infer contractual meaning. Phrases such as within 30 days, no later than, starting after, through Friday, or business days can carry rules that ordinary date subtraction cannot resolve. Preserve the source wording beside any consequential result.

Accuracy, Privacy, and Calendar Limits

The deterministic result is accurate for the entered Gregorian dates and selected endpoint convention. Inputs are limited to years 0001 through 9999. The page does not reconstruct historical calendar adoption, non-Gregorian calendars, local time zones, daylight-saving clock hours, observed holidays, or organization-specific closure dates.

Dates can still be personal or confidential information. Calculations run in the browser, but a shared device may retain visible form values or browser history. Recheck both source dates and the endpoint rule before relying on the result.

Official Calendar and Deadline References

Benefits of Using a Days Between Dates Calculator

Days Between Dates Calculator handles calendar or clock arithmetic that is easy to miscount manually, especially around month lengths, leap years, overnight periods, and inclusive date rules. The detailed Days Between Dates Calculator result makes its counting convention easier to verify.

Days Between Dates Calculator is particularly useful when you need to distinguish elapsed days from an inclusive date range, reproduce an exact calendar years-months-days span, and audit weekday, weekend, leap-day, and milestone results. For a clearer days between dates comparison, change one uncertain Days Between Dates Calculator input at a time instead of replacing the whole scenario.

FAQ

How many days are between two dates?

Enter both dates and use Elapsed interval. The result is the absolute number of civil-calendar transitions between them, while the entered direction is reported separately.

Should I include the end date when counting days?

Include it only when the question treats both boundary dates as members of the range. Elapsed time normally excludes the second boundary; an inclusive range adds one.

Why is the inclusive date count one more than elapsed days?

Elapsed days count transitions between boundaries. Inclusive counting counts the dates themselves, so it includes both the first and second date.

How many days are between the same date?

The elapsed interval is 0 because no calendar boundary was crossed. The inclusive range is 1 because the selected date itself is counted.

Does reversing the dates change the answer?

It changes the signed direction but not the absolute distance. The result states whether the second date is forward, backward, or the same as the first.

Does the calculator count weekends?

Yes. The elapsed and inclusive totals are calendar counts. Weekdays and weekend days are also reported separately under the selected endpoint convention.

Are public holidays removed from weekdays?

No. Monday through Friday are classified as weekdays even when a public holiday falls on one. Use the Business Days Calculator with the relevant holiday dates for that task.

Can daylight-saving time change the day count?

No. The calculator subtracts UTC calendar ordinals built from the civil year, month, and day. It does not divide local-midnight timestamps that can be 23 or 25 hours apart.

Is the years-months-days result exact?

It is exact under the disclosed anniversary-first calendar method: complete years, then complete calendar months, then remaining days. Other software may use another month-boundary convention.

What does the midpoint between dates mean?

The milestone table measures from the earlier boundary and places the midpoint at the complete elapsed day at or immediately before 50 percent of the interval.