Days Between Dates Calculator : Count Elapsed Days or Include Both Dates
The Days Between Dates Calculator measures the exact number of calendar days between any two dates using UTC calendar-date arithmetic so browser time zones, clock hours, and daylight-saving transitions never shift the day count. By default it returns elapsed days (excluding the end date, so the same date returns 0), or you can select Include both dates to count both calendar endpoints (so the same date returns 1). Need to exclude weekends or holidays, or convert spans to larger units? Switch to our Business Days Calculator, Weeks Between Dates Calculator, Months Between Dates Calculator, or Years Between Dates Calculator.
Interactive Calculator
100% Client-Side EngineStep-by-Step Examples
June 1 to June 10 (Elapsed vs. Include Both Dates)
Comparing the default elapsed-day rule against Include both dates from June 1, 2025 to June 10, 2025.
Default elapsed counting gives 9 days (6 weekdays, 3 weekend days; 1 week and 2 days), matching nights or full 24-hour intervals. Checking Include both dates counts both June 1 and June 10 for 10 total days (7 weekdays, 3 weekend days; 1 week and 3 days).
Summer Break Span (Include Both Dates)
Calculating total active days from June 1, 2025 through August 31, 2025 with both dates included.
Default elapsed counting yields 91 days (65 weekdays, 26 weekend days). Including both boundary dates covers all 30 days of June, 31 days of July, and 31 days of August for 92 calendar days.
Elapsed vs. Include Both Dates: Same-Day, Leap-Day & Year-Boundary Comparison
By default, this tool counts elapsed days (excluding the end date, so same-day = 0 and June 1 to June 10 = 9 days). Checking Include both dates counts both boundary calendar dates (+1 day, so same-day = 1 and June 1 to June 10 = 10 days).
| Scenario | Calendar Dates | Default: Elapsed Days | Include Both Dates |
|---|---|---|---|
Same-day range Identical start & end endpoints | Jun 1, 2025 → Jun 1, 2025 | 0 days 0 wkdays · 0 wkends | 1 day 0 wkdays · 1 wkends |
June 1 to June 10 Worked example | Jun 1, 2025 → Jun 10, 2025 | 9 days 6 wkdays · 3 wkends | 10 days 7 wkdays · 3 wkends |
Leap-day range (2024) Crosses Feb 29, 2024 | Feb 28, 2024 → Mar 1, 2024 | 2 days 2 wkdays · 0 wkends | 3 days 3 wkdays · 0 wkends |
Non-leap baseline (2025) 28-day Feb comparison | Feb 28, 2025 → Mar 1, 2025 | 1 day 1 wkdays · 0 wkends | 2 days 1 wkdays · 1 wkends |
Range crossing New Year Spans Dec 2025 to Jan 2026 | Dec 20, 2025 → Jan 5, 2026 | 16 days 10 wkdays · 6 wkends | 17 days 11 wkdays · 6 wkends |
Entering an earlier End Date (such as 2025-06-10 to 2025-06-01) does not fail or show a negative number: the calculator orders the two dates chronologically, reports a clear reversed-date indicator next to the result, and returns 9 elapsed days (or 10 days if Include both dates is selected).
Calculations run strictly on UTC calendar dates (Date.UTC) rather than elapsed local clock hours. Crossing a 23-hour spring-forward or 25-hour fall-back daylight-saving shift, or viewing from any browser time zone, never skews the day count.
Use this page when every calendar day counts (hotel nights, visa stays, medical intervals, countdowns). Whenever you need net working days for delivery SLAs, notice periods, project sprints, or legal deadlines—excluding weekends (Saturday & Sunday, Friday & Saturday, or Sunday only) and deducting custom public holiday counts—use our Business Days Calculator.
How to Use This Tool
- Enter a Start Date and End Date. If End Date is earlier than Start Date, the tool preserves a non-negative span and displays a reversed-date notice explaining the swap.
- Leave Include both dates unchecked for default elapsed days (End Date minus Start Date, where the same date equals 0), or check Include both dates to count both boundary calendar dates (+1 day, where the same date equals 1).
- Click Calculate to see total calendar days, full weeks plus extra days, Mon–Fri weekdays, Sat–Sun weekend days, and equivalent 24-hour calendar hours.
- When you need working days with customizable weekends and optional public holiday deductions, use the Business Days Calculator; for multi-unit spans, see weeks, months, or years between dates.