Date Difference Calculator / Days Between Dates

Date difference calculator for days between dates. Calculate days between two dates with inclusive or exclusive counts, business days, and holiday options.

01 calculator
Clock

Result

    Show the working

      The Date Difference Calculator counts the number of days between any two dates, then breaks that total down into years, months, weeks, and business days. Enter a start date and an end date in any common format, and the calculator returns both an exclusive count and an inclusive count, since the two answers serve different questions. Options for business-day-only counting and holiday exclusion turn the same tool into a deadline or notice-period planner.

      Days between dates with calendar subtraction

      Concept diagram: Start / end leads to days between dates leads to ResultStart / enddays between datesResult
      Days between dates with calendar subtraction.

      Days between dates come from subtracting one calendar day number from the other, not from dividing a millisecond timestamp. The calculator converts each entered date to a day number at local midnight and subtracts the smaller from the larger, which keeps the result correct across leap years and daylight-saving transitions.

      A calendar day number is a running count from a fixed reference point, unaffected by how long any individual day lasts. Dividing raw timestamps by 86,400,000 milliseconds looks equivalent but fails on days that run 23 or 25 hours because of a clock change, returning a fractional day where a whole number is correct. Calendar subtraction avoids that.

      If the end date entered is earlier than the start date, the calculator does not return an error. It reports the absolute difference and labels it clearly, for example "31 days before," since a reversed pair is usually a typo worth flagging rather than a blocking mistake.

      How many days between two dates, exclusive or inclusive

      How many days between two dates depends on whether both endpoints count. Exclusive counting subtracts one date from the other. Inclusive counting adds one more day to count both endpoints. The calculator shows both numbers side by side because the correct one depends on what is being counted, not on the dates themselves.

      A hotel stay from Monday to Friday is 4 nights, the exclusive count. A conference running Monday through Friday is 5 days, the inclusive count, because both the first and last day are attended in full. Showing both numbers removes the off-by-one guesswork that comes from undocumented defaults.

      Difference between dates in years, months and days

      Concept diagram: Inputs leads to difference between dates leads to Y / M / DInputsdifference betweendatesY / M / D
      Difference between dates in years, months and days.

      Difference between dates also breaks into years, months and days by borrowing down from years, the same method the Age Calculator uses for elapsed time.

      years  = endYear  - startYear
      months = endMonth - startMonth
      days   = endDay   - startDay

      if days < 0: months -= 1 days += daysInMonth(month before end date) if months < 0: years -= 1 months += 12 ```

      The borrow must pull from the real length of the month before the end date, not a 30-day average. Thirty-one days borrowed from January, twenty-eight from a common-year February, and twenty-nine from a leap-year February each produce a different total, and only the calendar-accurate one matches what a contract clause or a shipping estimate means by "one month."

      Date difference method for the day count

      Date difference at the day level is still the day-number subtraction described above. The years-months-days breakdown and the total day count stay consistent with each other on this page.

      Calculate days between two dates on a short range

      Concept diagram: 1 Feb 2016 leads to calculate days between two dates leads to 4 exclusive / 5 inclusive1 Feb 2016calculate days betweentwo dates4 exclusive / 5inclusive
      Calculate days between two dates on a short range.

      Calculate days between two dates with the 1 February 2016 to 5 February 2016 fixture: 4 days exclusive and 5 days inclusive, and both numbers are correct answers to different questions.

      Exclusive count. Day number of 5 February minus day number of 1 February equals 4. That is the number of nights a stay covering those dates would run, or the number of full days that elapse between the two dates.

      Inclusive count. Add 1 to the exclusive count to include both the start day and the end day: 5. That is the number of calendar days a person present on both 1 February and 5 February, and every day between, would say they were "there."

      Neither figure is wrong. A calculator that returns only one of them, without saying which, is why two people checking the same two dates sometimes argue about the answer.

      Number of days between two dates versus business days

      Number of days between two dates in the main total includes weekends. Business-day counting filters the range down to weekdays, excluding Saturday and Sunday by default, with an option to treat Saturday as a business day for six-day weeks. The calculator computes full weeks arithmetically and checks only the partial weeks at each end, so a forty-year range calculates as fast as a four-day one.

      Monday 6 July 2026 to Friday 24 July 2026 spans 19 calendar days and exactly 15 business days: three full five-day weeks, with no partial week left over because both endpoints land on a weekday.

      Two date difference between 2 dates

      Concept diagram: Date A leads to two date difference leads to Date BDate Atwo date differenceDate B
      Two date difference between 2 dates.

      Two date difference between 2 dates is the same input pair: start and end. The phrasing changes; the subtraction does not. Enter both dates, read the exclusive and inclusive day counts, then optionally switch to business days or add holiday exclusion.

      Number of days between 2 dates with holidays removed

      Number of days between 2 dates in business-day mode can also drop US federal holidays. Holiday exclusion removes a chosen set from the business-day count, using the observed-date rule by default: a fixed holiday that falls on a Saturday is observed the preceding Friday, and one falling on a Sunday is observed the following Monday.

      The list includes New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving, and Christmas, among others, each resolved for the specific year entered rather than hard-coded to one date.

      Independence Day is a fixed 4 July date, but in a year where 4 July falls on a Saturday, many employers observe it on Friday 3 July instead. The observed-shift rule is a toggle because private employers vary in whether they follow it.

      Include the time of day

      Concept diagram: Inputs leads to Include time of day leads to ResultInputsInclude time of dayResult
      Include the time of day.

      Adding a time of day to each date refines the result from whole days to days, hours, and minutes, useful for anything measured to a deadline rather than a calendar date. Enter a start time and end time alongside each date, and the calculator reports a precise elapsed duration in addition to the whole-day counts.

      A shipment marked "in transit" from 2:15 PM on one day to 9:40 AM two days later is not exactly 2 days; it is 1 day, 19 hours, 25 minutes short of 2 full days. For most calendar questions the whole-day figure is what matters, but for service-level agreements, lab sample windows, and anything billed by the hour, the time-aware total is the one to use.

      Convert the result to other units

      Scale bar: 1 result equals 2.96 other units1 result2.96 other units
      Convert the result to other units.

      Every difference the calculator returns converts automatically into weeks, months, years, hours, minutes, and seconds, so a single calculation serves whichever unit the reader needs without a second lookup. Weeks and months are derived from the same day count, not recalculated separately, which keeps every unit consistent with every other one on the page.

      A 90-day gap, for example, is also 12 weeks and 6 days, roughly 3 months depending on which months it spans, 2,160 hours, and 129,600 minutes. The months figure carries a small caveat: 90 days is not always exactly 3 months, since months vary in length, so the months-and-days breakdown from the calendar method above is the precise version and the flat unit conversions are the quick-reference version.

      Use date differences for real deadlines

      Concept diagram: Inputs leads to date differences for deadlines leads to ResultInputsdate differences fordeadlinesResult
      Use date differences for real deadlines.

      Deadlines, notice periods, and interval schedules all reduce to the same question: how many days sit between two fixed points. A 30-day notice period on a lease, a 90-day warranty window, a 14-day return policy, and the interval between two vaccine doses are all date-difference problems wearing different names.

      Contract terms often specify calendar days rather than business days, so confirming which one a clause means before relying on a count matters more than the arithmetic itself. A "within 10 business days" refund clause and a "within 10 days" clause can point to two different actual dates, sometimes by more than a week once weekends and a holiday or two are involved.

      Frequently asked questions

      How many days are between two dates?

      Enter a start date and an end date. The calculator subtracts the earlier calendar day number from the later one. The result appears as both an exclusive count, the number of full days elapsed, and an inclusive count, which adds one day to include both endpoints.

      Why do I get a different number than another calculator?

      The most common cause is inclusive versus exclusive counting: one tool may add the end day and another may not, without stating which. A second cause is date format, where 03/04/2026 is read as 4 March by one tool and 3 April by another. This calculator shows both counts and echoes the parsed date back so the ambiguity is visible.

      Does the date difference count weekends?

      The main total counts every calendar day, including weekends. Switching to business-days-only mode excludes Saturday and Sunday from the count, with an option to treat Saturday as a working day for six-day-week schedules.

      Can I exclude public holidays from the count?

      Yes. Selecting a holiday set removes matching US federal holidays from the business-day total, using the observed-date rule by default so a holiday landing on a weekend shifts to the nearest weekday it would actually be taken.

      How do I count days between dates including the time?

      Enter a time alongside each date to get a precise duration in days, hours, and minutes instead of a whole-day count. This matters for deadlines measured to the hour rather than the calendar day.

      What if the end date is before the start date?

      The calculator returns the absolute difference and labels it as a count before the start date rather than blocking the calculation, since a reversed pair of dates is more often a mistake worth flagging than an error worth stopping the page for.

      How many business days are in a typical month?

      A month with no holidays has roughly 20 to 23 business days, depending on how many weekends it contains and where the month starts. The calculator computes the exact figure for any specific month rather than relying on an average.

      Does the calculator account for leap years?

      Yes. The underlying day-number method counts every calendar day that actually exists, including 29 February in a leap year, so a range spanning a leap day returns one more day than the same date range in a non-leap year.

      How is this different from the Age Calculator?

      The Age Calculator answers a narrower question: the elapsed lifetime between a birth date and today, reported specifically in years, months, and days. The Date Difference Calculator answers the general case for any two dates and adds business-day, holiday, and inclusive-count options that a lifetime calculation does not need.

      Summary

      The Date Difference Calculator converts two calendar dates into a day count using calendar-safe subtraction rather than a timestamp division, and reports the result as both an exclusive and an inclusive total so the correct one is never a guess.

      Business-day filtering, US federal holiday exclusion with observed-date handling, and an optional time-of-day component extend the same core subtraction to notice periods, contract terms, and shipping windows. Every total also converts to weeks, months, years, hours, minutes, and seconds from one calculation.