CalcToolsKitSimple tools. Clear answers.

Date Calculator

Free · No sign-up

Find elapsed or inclusive days between dates. Add or subtract calendar days, weeks, months and years.

Choose your calculation

Changing the mode or using Reset loads example inputs and replaces your entries. Copy your result before switching if you need to keep it.

Example values are shown. Results update as you edit. Inputs stay in your browser.

Your result

Enable JavaScript to calculate with your inputs.

What is a Date Calculator?

Count days between dates, or move a date forward or backward by years, months, weeks and days. Plan an ordinary calendar range or compare two dates. This tool does not determine legal, contractual or working-day deadlines.

For hours, minutes and seconds, use the Time Calculator. For shifts with unpaid breaks, use Hours Calculator.

How to calculate days between dates

Choose Date Difference and enter Start Date and End Date. Elapsed days equals end minus start. January 1 to January 10, 2026 is 9 elapsed days: the starting date has not yet completed a full day. Results also show elapsed weeks and remaining days, range direction, and a calendar years/months/days breakdown.

When the end precedes the start, results keep a negative sign. January 10 to January 1 is −9 elapsed days. The calendar interval is measured from the earlier date using the same month-end rule as Add Date, then labeled with the range direction.

How to add or subtract days, weeks, months and years

Choose Add Date or Subtract Date and enter nonnegative whole numbers. Blank unit fields count as zero; fill at least one field, using 0 for no change. A week is seven calendar days. Each mode starts with example values; for a months-only or years-only offset, set the other unit fields to 0 before reading the result. Years and months are combined first; the day is clamped once to the last valid day in that target month. Weeks and days are applied next.

January 31, 2025 + 1 month + 1 day first reaches February 28, then March 1. Applying units in another order can give another answer; this calculator always uses the stated order. Subtract Date reverses the entered units, but month-end clamping means adding and then subtracting is not always reversible.

Inclusive vs. elapsed date counting

Elapsed days counts date boundaries crossed. Inclusive date count includes both endpoints: January 1 through January 10 includes 10 calendar dates. Select the checkbox for this count. The other elapsed and calendar interval rows keep their original meaning and are labeled separately.

A reversed inclusive range is negative with magnitude |elapsed days| + 1. The same date gives 0 elapsed days or 1 inclusive day. This convention alone does not determine an organization’s deadline rules.

Calculation method, leap years and month ends

Elapsed days = Gregorian day index(end) − Gregorian day index(start)
Inclusive count = range sign × (|elapsed days| + 1)
Offset date = clamp(start + years/months) + 7 × weeks + days

The engine uses whole-number Gregorian calendar-day indices rather than local timestamps. Browser time zones and daylight-saving offsets therefore do not affect the result. Leap years are divisible by 4, except century years unless divisible by 400: 2000 is a leap year; 2100 is not.

If a target month has no matching day, use its last valid day. January 31 + 1 month becomes February 28 in 2025 or February 29 in 2024. February 29, 2024 + 1 year becomes February 28, 2025. Months are never replaced by a fixed 30-day duration.

Worked examples

  • January 1–10, 2026: 9 elapsed days = 1 week 2 days; inclusive count = 10.
  • January 31, 2025 + 1 month: February 28, with a visible month-end adjustment.
  • January 31, 2024 + 1 month: February 29.
  • February 28, 2024 + 1 day: February 29. In 2025, the same offset reaches March 1.
  • December 31, 2026 + 1 day: January 1, 2027.
  • March 31, 2025 − 1 month: February 28. Adding a month back reaches March 28, because no hidden month-end flag is kept.

Understanding calendar details

The calendar interval uses full years/months with a single clamped month offset from the earlier date, then remaining days. January 31 to February 28, 2025 is 1 calendar month and 0 remaining days, or 28 elapsed days. These are different units for the same interval.

Assumptions and limitations

Dates must remain from 1900-01-01 through 9999-12-31. Invalid dates, negative/fractional offset amounts and out-of-range results produce errors. Each unit field permits at most 3,000,000; the resulting-date range is the stricter practical limit.

Only Gregorian whole dates are used. Hours, time zones, public holidays, business-day exclusions and local filing rules are not inferred. Weekends count as ordinary days. For clock offsets, use the Time Calculator; for clock intervals and unpaid breaks, use Hours Calculator.

Frequently asked questions

Are both endpoint dates included?

Elapsed days excludes the starting date as a full day. Enable Inclusive date count to count both endpoints. A same-date range is 0 elapsed days or 1 inclusive day.

Can I subtract dates or calendar units?

Date Difference computes end minus start, including negative ranges. Subtract Date moves a start date backward by entered years, months, weeks and days.

What happens when a month has fewer days?

The years/months step clamps the original day to that month’s last valid day. January 31 + 1 month becomes February 28 in 2025 or February 29 in 2024.

Will changing my time zone change the answer?

No. These are date-only Gregorian calculations. Local UTC offsets and daylight-saving transitions are not part of the calculation.

AboutContactPrivacy PolicyTermsDisclaimerAll calculatorsSitemap