Date Difference Calculator
Calculate the difference between two dates in days, weeks, months and years.
🔒 Runs entirely in your browser — nothing is uploadedDays, weeks and calendar difference
Date differences can be described in two useful ways. The first is a total elapsed duration, such as 42 days or 6 weeks. This is calculated by comparing the two calendar dates at local midnight and dividing the millisecond difference by the number of milliseconds in a day. The second is a calendar-style result, such as 1 year, 2 months and 3 days. That version counts complete years first, then complete months, then remaining days. Both answers are shown because they serve different planning needs.
Total days are useful for deadlines, rentals, countdowns, travel spans and simple duration math. Calendar years and months are easier for anniversaries, ages, memberships and contracts where people expect month boundaries to matter. Since months can be 28, 29, 30 or 31 days, “one month” is not a fixed number of days.
Inclusive versus elapsed counting
This calculator reports elapsed difference. If you choose July 1 and July 2, the difference is 1 day because one day passes between those dates. Some business, legal or event contexts use inclusive counting, where both the start and end dates are counted. In that system the same range might be described as 2 calendar days. If you need inclusive counting for a policy or form, add one day to the total-day result or follow the rule specified by that organization.
Local and private calculation
The tool uses your browser's local date handling and does not upload either date. It is ideal for quick checks such as “How many days until this trip?”, “How long between invoices?” or “How many weeks are in this project window?” For official deadlines, check the relevant time zone and cutoff rule. Daylight-saving changes usually do not affect calendar-date differences because the script normalizes dates to local midnight, but policies can still define deadlines by exact time rather than by date alone.
How to use
- Choose datesEnter the start and end dates in the two date fields.
- Compare durationRead the total days and weeks plus the calendar years, months and days.
- Swap if neededDates can be entered in either order; the calculator uses the absolute difference.