Date Calculator

DATE & TIME · CALENDAR ARITHMETIC

Days between two dates

Calculated on this device
First date in the range (YYYY-MM-DD).
Second date in the range (YYYY-MM-DD).

DURATION BETWEEN DATES

364 days

52 weeks and 0 days. End day excluded.

Method UTC calendar arithmetic with O(1) weekday/weekend counting.

Calendar Span0y 11m 30dExact years, months, and days
Business Days (Mon–Fri)260Excludes Saturdays & Sundays (excludes public holidays)
Weekend Days104Saturdays and Sundays in span
Weeks + Days52 wk, 0 dTotal 364 calendar days

HOW IT WORKS

Calendar duration & date offset rules

All date arithmetic runs in UTC date-only mode so Daylight Saving Time transitions never cause 23-hour or 25-hour off-by-one errors.

01

Days Between Two Dates

By default, the span counts whole days between the start and end date (excluding the end date). Enable “Include end day” to count both endpoints inclusively, such as for multi-day event or leave durations.

Total Days = |End − Start| + (Include End Day ? 1 : 0)
02

Business Days & Weekends

Business days count Monday through Friday across the selected span, while weekend days count Saturdays and Sundays. Public holidays are not excluded automatically.

03

Adding or Subtracting Offsets

Years and months are applied first with month-end clamping (e.g., Jan 31 + 1 month = Feb 28 in a common year or Feb 29 in a leap year), followed by exact weeks and days.

DATE ARITHMETIC GUIDE

How date differences, business days, and offsets work

Days Between Two Dates vs. Add/Subtract Duration

Use the mode picker to switch between measuring the span between a Start Date and End Date, or shifting a Start Date forward or backward by years, months, weeks, and days. In difference mode, you get the exact calendar span in days, weeks, weekdays, and weekend days. In add/subtract mode, you get the resulting target calendar date and day of the week.

How “Include end day” and business-day counting work

  • Exclusive vs. inclusive counts: Leaving Include end day unchecked measures elapsed nights or intervals (for example, Jan 1 to Jan 2 is 1 day). Checking Include end day counts both the start and end dates (Jan 1 to Jan 2 becomes 2 days), which is standard for PTO, billing days, or multi-day events.
  • Business days (Mon–Fri): Weekday counts include every Monday through Friday in the span and separate out Saturdays and Sundays. Regional or federal public holidays are not automatically deducted.
  • Month-end clamping: When adding or subtracting months or years, a day like the 31st clamps to the last valid day of the target month (for example, Jan 31 + 1 month lands on Feb 28 in a common year or Feb 29 in a leap year).

Related date and scheduling calculators

Need to calculate someone's exact chronological age and next birthday countdown? Try our Age Calculator. For a quick countdown or day-of-year lookup, use the Day Counter. If you are totaling weekly shift hours and breaks rather than calendar days, switch to our Time Card Calculator.

Frequently asked questions

When should I check “Include end day”?

Check Include end day when both the first and last dates are active days in your count—such as a 5-day conference from Monday through Friday or paid time off dates. Leave it unchecked for hotel nights or elapsed intervals.

Does the business-day count exclude public holidays?

No. Business days count all Monday–Friday weekdays in your selected range. Because holiday calendars vary by country, state, and employer, subtract any applicable holidays manually from the weekday total.

What happens if I add 1 month to January 31?

Because February does not have 31 days, the calculator clamps the result to the end of February—February 28 in standard years or February 29 in leap years.

What if my End Date is earlier than my Start Date?

The calculator automatically takes the absolute span between the two dates, so you still receive accurate total days, weeks, and weekday counts without needing to swap the inputs.

Your dates are calculated locally in this browser and are never sent to a server.