Days Between Dates Calculator
Calculate the number of days between two Gregorian calendar dates. Choose whether to include the end date, compare total calendar days with Monday-to-Friday weekdays and weekend days, see exact whole weeks plus remaining days, identify each date's weekday, and review average month and year equivalents without daylight-saving distortion.
Select two dates
Count the calendar interval and see its weekday and weekend breakdown.
Counts from the start date up to, but not including, the end date.
Preparing your local dates…
The result will show calendar days, weekdays, weekend days, and the exact week-and-day span.
How to Use the Days Between Dates Calculator
Choose a start date and an end date. The default calculation includes the start date and counts up to, but not including, the end date.
Turn on Include the end date when both selected dates should belong to the total. For example, the same start and end date changes from zero days to one counted day.
Use Swap dates to reverse the selected dates without retyping them. The calculator accepts either chronological direction.
The result shows total calendar days first, followed by Monday-to-Friday weekdays, weekend days, and an exact whole-weeks-plus-days breakdown.
How Many Days Are Between Two Dates?
The basic date difference is the number of civil calendar boundaries between the selected dates.
With the default end-date-excluded rule, July 11 to July 18 is seven calendar days. The counted dates are July 11 through July 17.
The result is based on calendar dates rather than elapsed clock hours, so crossing a daylight-saving change does not turn an adjacent pair of dates into zero or two calendar days.
Exclusive and Inclusive Date Counting
Every date-range calculation needs a boundary rule. The most important question is whether the final date belongs to the count.
With the end date excluded, July 11 to July 18 equals seven days. Turning on end-date inclusion makes the same range eight days because July 18 is added.
When both selected dates are the same, the exclusive count is zero. Including the end date produces one counted day.
Neither convention is universally correct. Travel bookings, contracts, notices, subscriptions, employment rules, and project schedules can define their boundaries differently.
Exclusive and inclusive date counting
The end-date setting determines whether the final selected date belongs to the interval.
Swipe horizontally to view the full table.
Calendar Days, Weekdays, and Weekend Days
Calendar days include every date in the counted interval.
Weekdays count Monday through Friday. Weekend days count Saturday and Sunday.
A Monday-to-Friday count is sometimes described informally as business days or working days, but those terms can require additional rules. This calculator does not remove public holidays, regional holidays, observed holidays, or organization-specific closures.
Use the weekday result when you specifically need a weekend-only exclusion. Use a holiday-aware business-day calculator when non-working holidays must also be removed.
What each date result means
Exact calendar counts are kept separate from average month and year equivalents.
Swipe horizontally to view the full table.
Why Weekdays Are Not Always Business Days
A weekday is a calendar classification: Monday, Tuesday, Wednesday, Thursday, or Friday.
A business day depends on context. A weekday may still be non-working because of a national holiday, regional holiday, bank holiday, company closure, or another rule.
That is why this calculator labels its result Weekdays rather than claiming that every Monday-to-Friday date is a valid business day.
Exact Weeks and Remaining Days
A week always contains seven calendar days, so an exact week-and-day decomposition does not need an average.
For example, 17 calendar days equals two complete weeks plus three remaining days.
This is different from converting the interval into decimal weeks. The exact breakdown is usually easier to read when describing a schedule or elapsed date range.
Average Months and Years
Calendar months are not equal in length. They can contain 28, 29, 30, or 31 days.
Calendar years can contain 365 or 366 days. Because of those differences, a raw day count does not convert into an exact number of calendar months merely by division.
This calculator therefore labels its month and year outputs as average equivalents. It uses 365.2425 days per average Gregorian year and 30.436875 days per average month.
Use the exact calendar-day or week-and-day result when exact boundaries matter.
Leap Years and February 29
Gregorian leap years normally occur every four years, adding February 29.
Century years are exceptions unless they are divisible by 400. For example, 2000 was a leap year while 1900 was not.
The civil-date calculation applies those Gregorian rules directly, so intervals crossing February 29 are counted correctly without a separate leap-year setting.
Date-Only Arithmetic and Daylight Saving Time
The calculator treats each input as a civil calendar date rather than a local moment on a clock.
It converts each validated date to a Gregorian day number and performs arithmetic on those integer day values.
It does not calculate the number of milliseconds between two local-midnight JavaScript Date objects.
That matters around daylight-saving transitions because some local calendar days contain 23 or 25 elapsed hours. Two adjacent dates still remain one calendar day apart here.
Reverse Date Ranges
The end date can be earlier than the start date. The calculation engine preserves that direction rather than rejecting the range.
The interface explains when the selected range runs backward while showing the magnitude of the calendar-day, weekday, weekend, and week breakdown for readability.
Boundary rules still apply to the selected direction. With the end date excluded, the start date belongs to the counted interval and the selected end date does not.
Use Swap dates when you simply entered the two dates in the opposite order.
Why Two Date Calculators Can Show Different Answers
A one-day difference is often caused by one calculator including the end date while another excludes it.
Larger differences can come from excluding weekends, public holidays, or both.
A duration calculator that includes times of day may also disagree with a date-only calculator because it measures elapsed hours instead of civil dates.
Before comparing results, check the start-date rule, end-date rule, weekend treatment, holiday treatment, calendar system, and whether times of day are involved.
Choosing the Correct Date Count
The mathematically correct interval is not always the operational answer required by a real-world rule.
Before relying on a result, determine whether the start date counts, whether the end date counts, whether weekends are excluded, whether public holidays are excluded, and whether the deadline ends on a date or at a particular time.
For contracts, visas, employment notices, benefits, taxes, court filings, regulated deadlines, and similar matters, follow the governing document or applicable professional guidance rather than assuming a general date calculator defines the legal counting rule.
Questions to check before using a date count
Different real-world rules can require different interval boundaries.
Swipe horizontally to view the full table.
Days Between Dates Formulas
Each validated date is converted into a Gregorian civil-day number. The absolute difference gives the default date interval, while optional end-date inclusion adds one counted date.
Formula variables
- Gregorian civil-day number of the start date
- Gregorian civil-day number of the end date
- 0 when the end date is excluded and 1 when it is included
- Absolute counted calendar days
- Signed date difference preserving direction
- Counted Saturdays and Sundays
- Monday-to-Friday weekdays
- Complete seven-day weeks
- Calendar days remaining after complete weeks
Examples
One full week with the end date excluded
1Input
Start: 2026-07-11; end: 2026-07-18; Include the end date: off.
Show result
Result
7 calendar days, 5 weekdays, 2 weekend days, and exactly 1 week.
The count includes Saturday, July 11 through Friday, July 17.
Count both selected dates
2Input
Start: 2026-07-11; end: 2026-07-18; Include the end date: on.
Show result
Result
8 calendar days, 5 weekdays, 3 weekend days, or 1 week + 1 day.
The second Saturday is included because the selected end date is counted.
Use the same date twice
3Input
Start and end: 2026-08-03.
Show result
Result
0 days with the end date excluded; 1 day with the end date included.
The selected boundary rule changes the meaning of an otherwise identical range.
Cross a leap day
4Input
Start: 2028-02-28; end: 2028-03-01; end date excluded.
Show result
Result
2 calendar days.
The counted dates are February 28 and February 29 because 2028 is a Gregorian leap year.
Reverse the dates
5Input
Start: 2026-07-18; end: 2026-07-11; end date excluded.
Show result
Result
The interval magnitude is 7 calendar days and the calculator identifies that the end date is earlier than the start date.
The start boundary remains included and the selected end boundary remains excluded even when the direction is reversed.
Cross a daylight-saving transition
6Input
Select two calendar dates that span a local clock change.
Show result
Result
The day count remains based on civil calendar dates rather than a 23-hour or 25-hour local day.
This calculator measures date boundaries, not elapsed clock time.
Frequently Asked Questions
How do I calculate the number of days between two dates?
Select a start date and an end date. By default, the calculator includes the start date and counts up to, but not including, the end date.
Is the start date included?
Yes. The default interval includes the selected start date and excludes the selected end date.
What does Include the end date do?
It adds the selected end date to the counted interval. If the start and end dates are identical, the result therefore changes from zero days to one day.
How many days are between the same date?
The default end-date-excluded interval is zero days. If Include the end date is enabled, that single selected date counts as one day.
What is the difference between calendar days and weekdays?
Calendar days include every date in the interval. Weekdays include Monday through Friday only.
Are weekdays the same as business days?
Not necessarily. A business day may also exclude public holidays, regional holidays, observed holidays, or organization-specific closures. This calculator removes weekends only.
Does the calculator exclude public holidays?
No. The weekday count includes Monday through Friday regardless of public holidays.
Can I calculate days excluding weekends?
Yes. The Weekdays result counts Monday through Friday only. It does not remove public holidays.
Does the calculator handle leap years?
Yes. Gregorian leap-year rules, including February 29, are applied automatically.
Can daylight saving time change the result?
No. The engine compares civil calendar-day numbers instead of subtracting local-midnight milliseconds, so daylight-saving clock changes do not alter the date-only result.
Are whole weeks exact?
Yes. Each complete week contains seven calendar days, so the whole-weeks-plus-days breakdown is exact.
Why are months and years decimal values?
Calendar months and years have unequal lengths. The calculator therefore shows average equivalents using 30.436875 days per month and 365.2425 days per year.
What happens when the end date is earlier than the start date?
The range is still calculated. The engine preserves its reverse direction while the interface shows the interval magnitude and explains that the end date is earlier.
Why can another date calculator show a different result?
Another calculator may include both boundary dates automatically, exclude public holidays, use a different weekend rule, or measure elapsed time rather than date-only calendar days.
Can I calculate hours or minutes between two dates?
No. This calculator accepts calendar dates only. A duration calculator is needed when times of day, time zones, or elapsed hours matter.
Can I add 30 business days to a date?
No. This calculator compares two existing dates. Adding or subtracting working days requires a different calculation and, when holidays matter, an appropriate holiday calendar.
How large can the date range be?
The counted interval can contain up to 100,000 calendar days.