Date Difference Calculator
Count days, weeks, and business days between two dates. Perfect for deadlines, invoicing, and planning. Instant and free.
Count the days, weeks, and business days between two dates — with an include-end-date toggle for deadline-style counting, business days that correctly skip weekends, and local-timezone handling that stays stable across daylight-saving changes.
How to use Date Difference Calculator
- Set the start and end dates.
- Toggle include-end if you are counting to a deadline.
- Read total days, the weeks-plus-days breakdown, and business days.
Who it is for
Project managers counting to a deadline, freelancers invoicing business days, lawyers and HR computing notice periods, and anyone who has miscounted "30 days" across a weekend.
How it works
- Total days supports both directions with an explicit sign and an include-end toggle (Jan 1→Jan 31 is 30 days exclusive, 31 inclusive).
- Business days walk the actual calendar excluding Saturdays and Sundays — public holidays are country-specific and noted for manual adjustment.
- Dates parse as local noon, which is the trick that keeps counts identical across DST boundaries.
What it cannot do
- Weekend definition is fixed at Saturday–Sunday; countries with different weekends need manual reading.
- Public holidays are not built in — business days here mean working weekdays, not working days.
Sample input & output
Start: 2026-03-02 (Monday) → End: 2026-03-31 (Tuesday), with Include end date toggled off vs on
Exclusive: 29 total days (4 weeks, 1 day) and 21 weekdays | Inclusive: 30 total days (4 weeks, 2 days) and 22 weekdays.
Frequently asked questions
What is the difference between exclusive and inclusive counting?
Exclusive counts the gap between the dates (Jan 1→Jan 31 = 30 days); inclusive adds the end date itself (31 days) — deadline language usually means inclusive.
Why are business days different from what my calendar says?
This tool skips weekends only; national holidays are not included because they differ by country. Subtract them manually.
Does daylight-saving change the count?
No — dates are compared at local noon, which keeps every day exactly one day regardless of clock shifts.
When should I use exclusive counting versus inclusive counting for contracts and hotels?
Exclusive counting measures elapsed nights or 24-hour spans (end minus start): checking into a hotel on March 10 and checking out on March 13 is 3 nights (13 - 10 = 3), and net-30 invoice terms add 30 calendar days exclusively to the invoice date. Inclusive counting counts every calendar date touched — taking annual leave from Monday through Friday inclusive consumes 5 PTO days, not 4.
Why does naive JavaScript timestamp subtraction fail by one day across Daylight Saving Time?
Subtracting two midnight timestamps and dividing by 86,400,000 milliseconds assumes every local calendar day is 24 hours long. On the spring-forward DST Sunday a local day is 23 hours, and on the fall-back Sunday it is 25 hours, making Math.floor((end - start) / 86400000) undercount by a full day. Anchoring both calendar dates at local 12:00 noon absorbs ±1-hour clock shifts cleanly.
How do Gregorian leap-year rules work for century years like 1900, 2000, and 2100?
In the proleptic Gregorian calendar, a year has 366 days (adding February 29) if it is divisible by 4, EXCEPT century years divisible by 100, which are common 365-day years UNLESS also divisible by 400. Consequently, 2000 was a leap year, whereas 1900 was not and 2100 will not be — a distinction Excel's legacy Lotus 1-2-3 compatibility bug famously got wrong for 1900.
How should I adjust the business-day count for Friday-Saturday workweeks or bank holidays?
Because statutory public holidays vary by country, state, and lunar or religious calendars — and jurisdictions such as Bangladesh (government/banking Sunday-Thursday week with Friday-Saturday weekend) differ from the ISO Saturday-Sunday weekend — the tool counts Monday-through-Friday weekdays deterministically. For a Friday-Saturday weekend or statutory holidays, verify which weekdays fall on local closures and subtract confirmed non-weekend holidays manually.