Date Difference Calculator
Count the span between any two dates in days, weeks and business days. Handy for contracts, travel planning, project deadlines and age-on-a-date checks.
Calculate
Time between
From the start date up to the end date.
Time between
The formula
Take the absolute difference between the two calendar dates in milliseconds and divide by 86,400,000 (the length of a civil day). Leap days that fall between the dates are included automatically because both dates are interpreted on the Gregorian calendar. We also report whole weeks, an approximate year fraction using 365.25 days per year, a years/months/days breakdown, weekday (Mon–Fri) business days, and weekend days.
Worked example
- Start 1 January 2026, end 1 July 2026
- Both dates are midnights on the Gregorian calendar; July 1 is 181 days after January 1 in a non-leap year
- 181 ÷ 7 = 25 weeks with 6 days remainder; 181 ÷ 365.25 ≈ 0.50 years
Result: 181 days (25 weeks · ≈ 0.50 years)
How the date difference is calculated
Date math looks simple until leap years, inclusive counting, and “business days” enter the conversation. This tool reports the civil-day gap between two dates — by default the number of midnights crossed from one date to the other (exclusive of the end date).
Calendar days (what we count)
We count whole calendar days between the two dates, including weekends. From Monday to Friday the exclusive result is 4 days (Tue, Wed, Thu, Fri midnights after Monday), not 5 inclusive weekdays. Tick "Count the end date too" when your rule needs an inclusive count (adds one day).
Order does not matter: the result is always the positive span. Swapping start and end yields the same number of days.
Leap years
If 29 February falls strictly between the two dates, it adds one day to the total. Century years follow the Gregorian rule (divisible by 400). The year-fraction display uses 365.25 as a long-run average — useful for rough comparisons, not for legal day counts.
Years, months and days
The dashboard also shows a calendar Y/M/D breakdown of the same span (similar to an age calculator). Adding “one month” to a date in a contract can still differ by library — use the day count when the wording is about days.
Business and weekend days
Business days here mean Monday–Friday only. Public holidays are not subtracted — confirm your jurisdiction’s holiday calendar when a deadline depends on bank or court days.
Time zones
Inputs are calendar dates without a time of day. Cross-zone events can disagree by one day if each party uses a local midnight. Agree on a shared zone or use timestamps when the exact instant matters.
Interesting facts
Gregorian leap rule
Most years divisible by 4 are leap years; century years must also be divisible by 400. That is why 2000 had a February 29 and 1900 did not.
Business days need a holiday calendar
This tool counts Mon–Fri weekdays only. Banks and courts publish holiday calendars — subtract those separately when your rule requires it.
Inclusive vs exclusive counting
“How many days between Monday and Friday?” can mean 4 gaps or 5 named days. Use the inclusive checkbox when your policy counts both endpoints.
ISO week dates
Some industries number weeks with ISO 8601 week dates (week starting Monday). Our week count is simply total days ÷ 7, not an ISO week-number difference.
Unix time still has leap seconds
Civil day counts for forms ignore leap seconds. Scientific timelines that need exact SI seconds use different time scales (UTC with leap seconds, or TAI).
Frequently asked questions
Enter both dates. The calculator returns the absolute number of calendar days between them, plus weeks, a year fraction, business days, and more.
Weekends are included in the total day count. Business-day and weekend-day cards separate Mon–Fri from Sat–Sun. Public holidays are not removed automatically.
No. The result is the positive difference, so either date can be entered first — or use Swap dates.
If February 29 lies between the dates, it adds one day. The year estimate uses 365.25 days; the day count itself is exact for the Gregorian calendar dates you enter.
It switches from an exclusive span (midnights crossed) to an inclusive count that adds one day — useful when both the start and end dates count toward a deadline.
Only dates are used. Two events on the same calendar date are 0 days apart here even if they were 23 hours apart by the clock.
References
- ISO 8601 — Date and time format Defines calendar date representation and related week-date conventions.
- Time FAQs (leap years) Gregorian leap-year rules used in civil calendars.
- Federal holidays Reference when converting calendar-day spans to US federal business days.