Date Difference Calculator

Find the exact days, weeks, months, and years between any two dates.

Calendar daysBusiness days optionUpdated May 2026

Total calendar days

30

Exclusive elapsed difference from Jun 17, 2026 to Jul 17, 2026

Calendar duration

0y 1m 0d

Based on actual calendar boundaries.

Weeks and days

4w 2d

Total days divided by 7.

Approx. total months

0

Approximation using average month length.

Total hours

720

Calendar days × 24.

Total minutes

43,200

Calendar days × 1,440.

Date direction

Future range

Use swap to reverse dates.

Start date

Jun 17, 2026

End date

Jul 17, 2026

What This Date Range Means

The date range is 30 total calendar day(s).
That equals approximately 4 week(s) and 2 day(s).
Exclusive counting measures the elapsed gap between the two dates.
Turn on business day mode if you want to exclude selected weekend days.
Month-based differences can vary because months have different lengths.

Date Difference Logic

Calendar day difference

Date Difference = End Date − Start Date

Inclusive count

Inclusive Days = Calendar Day Difference + 1

Weeks and days

Weeks = floor(Total Days ÷ 7), Remaining Days = Total Days mod 7

Business days

Business Days = Calendar Days − Weekend Days

Calendar Date vs Duration

Total days

A fixed count of days between two dates.

Calendar duration

Years, months, and days depend on month boundaries.

Leap years

Leap years can add an extra day when February 29 is included.

Month length

One month is not always 30 days.

Planning use

Use total days for exact counts and calendar duration for readable summaries.

Accuracy note

This calculator uses calendar dates, not hidden time-of-day values.

Inclusive vs Exclusive Date Counting

Exclusive counting

Counts the gap between dates. Jan 1 to Jan 2 equals 1 day. This is common for elapsed time.

Inclusive counting

Counts both the start and end dates. Jan 1 to Jan 2 equals 2 days. This is common for stays, deadlines, and event ranges.

Business Days vs Calendar Days

Calendar days include every day in the range, including weekdays and weekends.

Business days usually exclude weekends. Some workflows also exclude public holidays, but holiday rules vary by country, company, and calendar system.

This calculator supports weekend exclusion only. It does not automatically remove public holidays.

Worked Examples

Jan 1 to Jan 31

Logic: 31 − 1 = 30

Result: 30 days

Exclusive elapsed difference.

Inclusive Jan 1 to Jan 31

Logic: 30 + 1

Result: 31 days

Both start and end dates are counted.

Across a leap year

Logic: Feb 28 to Mar 1 in a leap year includes Feb 29.

Result: 2 days

Leap years can change date ranges.

Weeks and days

Logic: 30 ÷ 7 = 4 remainder 2

Result: 4 weeks and 2 days

Useful for schedules and planning.

Calendar vs business days

Logic: Exclude Saturday and Sunday.

Result: Lower than calendar days

Business days depend on weekend settings.

Start after end

Logic: The calculator detects a reversed range.

Result: Past range

Use swap dates to reverse the direction.

Common Date Difference Mistakes

Confusing inclusive and exclusive counting.
Assuming every month has exactly 30 days.
Forgetting that leap years add February 29.
Mixing calendar days with business days.
Expecting holiday exclusions when only weekends are excluded.
Reversing the start and end dates.
Comparing dates that include hidden time values.

Frequently Asked Questions