Date Difference Calculator

Instant results as you type.

Processed on your device — never uploaded

Fill in the values — results appear instantly.

A date difference calculator counts the days between two dates, and also breaks the gap into years, months, and days plus full weeks. Enter the dates in either order — it handles reversed input automatically. Leap years and the varying lengths of months are accounted for, so the count is exact rather than approximate. Everything runs in your browser.

How to use it

  1. Enter the two dates in any order.
  2. See total days, full weeks plus leftover days, and a years-months-days breakdown.
  3. Use it for project spans, visa durations, anniversaries, or deadlines.

Examples

  • 1 January 2026 to 17 July 2026 → 197 days, or 28 weeks and 1 day.
  • That's also 0 years, 6 months, 16 days.

Frequently asked questions

Does the count include both start and end dates?
The total-days figure is the gap between the dates, so 1 July to 2 July is 1 day. If you need both endpoints counted — as leave applications usually do — add one, or use the working days calculator, which counts inclusively.
How are leap years handled?
Automatically. Any 29 February inside your range is counted as a real day, so spans crossing leap years are exact. This matters for long ranges, where an approximate 365-day year would drift.
Can I count working days only?
Not with this tool — it counts every calendar day. Use the working days calculator instead: it counts weekdays only and lets you subtract public holidays.
Why do months vary in the breakdown?
Because real months are 28 to 31 days long. The years-months-days breakdown steps through actual calendar months rather than assuming a fixed length, which is why the same number of total days can give different breakdowns depending on where in the year it falls.