Days Between Dates Calculator
Calculate the date-only interval between two Gregorian calendar dates. Choose whether to include the end date, compare 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.
Off counts the interval from the start date up to, but not including, the end date.
How to Use the Days Between Dates Calculator
Choose a start date and an end date. The default calculation counts from the start date up to, but not including, the end date.
Enable Include the end date when both selected dates should belong to the total. Use Swap dates to reverse the entries without retyping them, or Reset to return to today and a date seven days later.
The result separates total calendar days, Monday-to-Friday weekdays, Saturdays and Sundays, exact whole weeks, and decimal month and year equivalents.
Exclusive and Inclusive Date Counting
A date interval needs a boundary rule. With the end date excluded, July 11 to July 18 is seven days because the count covers July 11 through July 17.
Including the end date adds the final calendar date, so the same selection becomes eight days. When both inputs are the same, the exclusive result is zero and the inclusive result is one.
Neither convention is universally correct. Bookings, legal notices, project plans, subscriptions, and travel schedules can define their boundaries differently, so use the rule required by the real situation.
Exclusive and inclusive date counting
Swipe horizontally to view the full table.
Calendar Days, Weekdays, and Weekend Days
Calendar days include every counted date. The weekday result counts Monday through Friday, while weekend days count Saturday and Sunday.
The weekday figure is often called a business-day or working-day count, but this calculator removes weekends only. A public holiday that falls on Monday through Friday remains in the weekday total.
Holiday-aware calculations need a location, holiday calendar, observed-day rules, and sometimes organization-specific closures. Those inputs are deliberately outside this global date calculator.
What each date result means
Swipe horizontally to view the full table.
Date-Only Arithmetic Avoids Daylight-Saving Errors
The inputs represent civil calendar dates rather than moments on a clock. The engine converts each validated YYYY-MM-DD value to a Gregorian day number and subtracts those day numbers.
It does not divide the milliseconds between two local-midnight Date objects. That distinction matters because a local day can contain 23 or 25 elapsed hours when a region changes its clocks.
As a result, two adjacent calendar dates remain one calendar day apart even when a daylight-saving transition occurs between them.
Leap Years and Unequal Month Lengths
The Gregorian calendar inserts February 29 in years divisible by four, except century years not divisible by 400. The day-number calculation applies that rule automatically.
Crossing a month or year boundary does not require a fixed 30-day month assumption. The exact calendar-day result is based on the actual dates, including February and leap days.
The average-month result is separate. It divides the exact day total by the mean Gregorian month length only to provide a rough decimal comparison.
Exact Weeks Versus Average Months and Years
A week always contains seven calendar days, so the whole-weeks-plus-days breakdown is exact. Ten days becomes one complete week plus three days.
Calendar months vary from 28 to 31 days, and years contain 365 or 366 days. The calculator therefore labels months and years as average equivalents rather than exact calendar components.
Use the exact day or week result for deadlines and schedules. Use average months and years only when a broad proportional comparison is useful.
Reverse Date Ranges
The calculator accepts an end date earlier than the start date. The calculation engine preserves that direction internally, and the interface clearly states that the end date is earlier.
Weekday, weekend, week, month, and year details are displayed as the absolute size of the interval so the breakdown remains easy to read.
Use Swap dates when the dates were entered in the wrong order or when you want to compare the same interval in the opposite direction.
Choosing the Correct Count for Real Tasks
A mathematically correct day count can still be the wrong operational answer when the underlying rule is unclear.
Before relying on a result, determine whether the start date counts, whether the end date counts, whether weekends are working days, whether holidays are excluded, and whether a deadline ends at midnight or at a specific time.
For contracts, visas, employment notices, benefits, taxes, court filings, or regulated deadlines, follow the governing document and applicable professional guidance rather than assuming a general calculator defines the rule.
Questions to check before using a date count
Swipe horizontally to view the full table.
Why Two Date Calculators Can Disagree
Most one-day disagreements come from including or excluding the end date. Larger differences often come from removing weekends, public holidays, or both.
A time-duration calculator can also differ from a date-only calculator because it measures exact elapsed hours and may reflect daylight-saving changes.
Compare the boundary rule, weekend rule, holiday treatment, calendar system, and whether times of day are present before deciding that either result is incorrect.
Private Local Date Calculation
The selected dates and results remain in the browser. The tool does not upload the dates, create an account record, or place the values in a public share URL.
The default dates are derived from the device's local calendar after the page hydrates. Changing or swapping dates does not request location access.
Reset returns to the current local date and a date seven calendar days later.
Days Between Dates Formulas
Each date is converted to a Gregorian civil-day number. The absolute difference gives the exclusive interval, and the optional inclusion value adds the end date. Direction is stored separately when the end date is earlier.
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 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 added because the 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 weekday with the end date included.
This example shows why the boundary setting matters.
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 leap year.
Enter the dates in reverse
5Input
Start: 2026-07-18; end: 2026-07-11.
Show result
Result
The interface reports a 7-day interval and states that the end date is earlier than the start date.
Swap dates restores chronological order without changing the interval size.
Cross a daylight-saving change
6Input
Select two calendar dates spanning a local clock change.
Show result
Result
The result remains based on calendar-day numbers rather than a 23-hour or 25-hour local day.
This is a date-only calculation, not an elapsed-time calculation.
Frequently Asked Questions
How do I calculate the number of days between two dates?
Select the start and end dates. By default, the calculator counts from the start date up to, but not including, the end date.
What does Include the end date do?
It adds the selected end date to the count. The same start and end date therefore changes from zero days to one day.
Is the start date included?
Yes. The default interval begins with the start date and excludes the end date. Turning on Include the end date counts both boundaries.
What is the difference between calendar days and weekdays?
Calendar days include every counted date. Weekdays include Monday through Friday only.
Are weekdays the same as business days?
Not always. This calculator treats Monday through Friday as weekdays but does not remove public holidays or organization-specific closures.
Does the calculator exclude public holidays?
No. Holiday rules depend on country, region, observed-day policy, and organization, so weekday totals remove Saturdays and Sundays only.
Does it 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 rather than dividing local-midnight milliseconds, so a clock change does not turn adjacent dates into zero or two calendar days.
Why are months and years decimal values?
Months and years have unequal lengths. The tool shows average equivalents using 30.436875 days per month and 365.2425 days per year.
Are whole weeks exact?
Yes. A week is always seven calendar days, so the whole-weeks-plus-days breakdown is exact.
What happens when the end date is earlier?
The engine preserves the negative direction, while the interface displays the absolute interval size and explains that the end date is earlier.
Why can another date calculator show a different answer?
It may include the end date automatically, exclude holidays, use a different weekend, or measure exact elapsed time instead of date-only calendar days.
Can I calculate hours or minutes between two dates?
No. This tool accepts dates only. A time-duration calculator is required when times of day and time-zone offsets matter.
How large can the date range be?
The counted interval can contain up to 100,000 calendar days.
Can I add 30 business days to a date?
No. This tool compares two existing dates. Adding or subtracting working days requires a separate business-date calculator with an appropriate holiday calendar.
Are my dates uploaded or saved?
No. The dates and results are processed locally in the browser and are not added to the page URL.
References
You might also like
Age Calculator
Calculate exact age in years, months, and days, total time elapsed, and the date and weekday of the next birthday.
Sleep Calculator
Calculate bedtime, wake-up time, sleep duration, or a wake-up time from now, with your own sleep target and fall-asleep estimate.
SLA Deadline Calculator
Add elapsed or business hours to a start time, skip custom non-working days and holidays, apply paused time, and export the deadline.
My Screen Size
Instantly check your browser-reported screen resolution, live viewport, aspect ratio, device pixel ratio, estimated device pixels, color depth, and touch support.