Skip to content
CalcNova

Date Difference Calculator

Find the number of days between two dates, along with the difference in weeks and a calendar breakdown in years, months and days.

Result

Enter your values to see the result.

Overview

Choose whether to count the start date (inclusive) or not (exclusive) — the difference matters for deadlines, rentals and event planning.

Formula

  • Exclusive days = End date − Start date
  • Inclusive days = End date − Start date + 1
  • Weeks = floor(days ÷ 7), remainder = days mod 7

Exclusive counting measures the elapsed time: from Monday to Tuesday is 1 day. Inclusive counting counts every calendar date in the range: Monday through Tuesday is 2 days.

Worked examples

Example 1January 1 to December 31, 2026

  1. Exclusive: 364 days (52 weeks)
  2. Inclusive: 365 days (52 weeks, 1 day)

364 days exclusive, 365 days inclusive.

Example 2March 1 to March 31

  1. Exclusive: 30 days
  2. Calendar breakdown: 0 years, 0 months, 30 days

30 days, or 31 when both dates are counted.

Assumptions and limitations

  • Exclusive counting is the default. Inclusive counting adds one day to the result.
  • If the end date is before the start date, the dates are swapped and the result is shown as a positive difference.
  • Calendar dates only — time of day, time zones and daylight saving are not involved.
  • Dates up to 200 years apart are supported.

Frequently asked questions

Should I use inclusive or exclusive counting?

Use exclusive counting for elapsed time (how long until an event). Use inclusive counting when every date in the range counts, such as the number of days of a trip, a leave period or a hotel booking including check-out day.

How are months counted in the breakdown?

Whole calendar months are counted from the start date. Because months vary between 28 and 31 days, the breakdown is more meaningful than dividing the days by 30.

Does it include leap days?

Yes. February 29 is counted whenever it falls inside the range.

Last reviewed . Found a problem? Let us know.

Explore date & time calculators