# Date Difference Calculator

URL: https://hifreetools.com/date-time/date-difference-calculator

> Find the time between any two dates — in years, months, and days, and as a total number of days and weeks.

## Quick answer

A date difference calculator counts the time between a start date and an end date. It reports full years, then leftover months and days, using the calendar so different month lengths and leap years are handled correctly, and also gives the total number of days.

The difference is computed with real calendar dates. Full years are counted from the start date, then whole months (a day like the 31st is clamped to the end of shorter months), then leftover days. The total day count is the exact number of calendar days between the two dates, also shown as whole weeks plus days.

## Examples

- 2020-01-01 to 2026-06-05: start 2020-01-01, end 2026-06-05 → 6 years, 5 months, 4 days
- Total days for the same range: start 2020-01-01, end 2026-06-05 → 2,347 days
- A two-week trip: start 2026-07-01, end 2026-07-15 → 14 days (2 weeks)

## FAQ

**How do I calculate the difference between two dates?**
Enter a start and end date. The tool counts full years, then months, then leftover days, and also shows the total number of days and weeks between them.

**Does it include leap years?**
Yes. Because it uses actual calendar dates, leap days are counted automatically.

**Does the total include both the start and end day?**
It counts the gap between the dates. For example, 1 July to 15 July is 14 days, not 15.

**Can I count business days only?**
No. This tool counts all calendar days, so weekends and holidays are included. To count Monday–Friday only, use the business-days calculator (it skips weekends but not public holidays).

**Are my dates uploaded?**
No. The calculation runs entirely in your browser.

**Do I have to enter the start date before the end date?**
No. The tool automatically identifies which date is earlier and which is later, so the order doesn't matter. You'll get the same result either way.

**What if both dates are the same?**
The result is 0 days, 0 weeks, and 0 years. The tool will display this as 0 total days.


Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Date Difference Calculator", https://hifreetools.com/date-time/date-difference-calculator
