Date Difference Calculator

Find days, weeks, months, and years between two dates.

Choose a start date and an end date to see the difference.

Free online date difference calculator

This date difference calculator tells you exactly how much time lies between two dates — the answer to "how many days between these dates?" in a single click. Pick a start date and an end date and it instantly works out the duration in years, months, and days, then breaks it down into total days, total weeks with the leftover days, whole calendar months, and total hours. It's ideal for counting down to deadlines, working out project lengths, notice periods, pregnancy weeks, or anniversaries. Everything runs in your browser, so your dates stay private.

How to find the difference between two dates

  1. Pick your Start date in the first field.
  2. Choose the End date — it defaults to today.
  3. Tick Include end date if the final day should count too.
  4. Read the exact years, months, and days as the result updates live.
  5. Check the totals, then click Copy summary for forms or messages.

How the calculation works

The tool counts whole calendar years and months first, clamping an anniversary such as the 31st or February 29 to the last valid day of a shorter month. It then counts the remaining days, so January 31 to February 28 is one whole calendar month while the total still shows 28 days. If the end date falls before the start date, it uses the absolute difference and notes the order. Working out someone's age instead? Try the age calculator. Comparing epoch values? Use the Unix timestamp converter.

Examples of the difference between two dates

Use these examples to check whether you need elapsed days or an inclusive count. The default excludes the end date; Include end date adds one calendar day.

Calendar-day counts, with and without the end date
Start dateEnd dateDefault daysIncluding end date
2026-01-012026-01-0212
2026-01-312026-02-282829
2024-02-282024-03-0123
2026-06-152026-06-1501

January 31 to February 28, 2026 is one whole calendar month and 28 elapsed days. A calendar month is not always 30 days. The leap-year example includes February 29, 2024, so February 28 to March 1 spans two days.

Choose the right date or time calculation

If your deadline excludes weekends, or you need to add a number of working days rather than simply count calendar dates, see our calendar days versus business days guide for side-by-side examples and the right calculator for each task.

The total hours here equals calendar days multiplied by 24. It is not an elapsed timestamp calculation across time zones or daylight-saving changes.

Private and instant

There is no sign-up and nothing is uploaded — the calculation happens locally on your device. Bookmark this page the next time you need a fast, accurate count of the days between two dates.

Frequently asked questions

How does the date difference calculator work?

Pick a start date and an end date and the tool works out the duration between them. It counts whole calendar years and months before the remaining days, so you get a clear result in years, months, and days — plus totals in days, weeks, whole calendar months, and hours. Everything is calculated in your browser as you type.

How are the years, months, and days calculated?

The calculator counts complete calendar years and months from the earlier date, clamping an anniversary to the last valid day when a month is shorter. It then counts the remaining days. This makes 31 January to 28 February one calendar month, while the total remains 28 days.

What does "Include end date" do?

By default the end date is not counted as a full day, so 1 January to 2 January is 1 day. Tick "Include end date" to count the final day too, which adds 1 day to every total. This is useful when you are counting nights versus days, project durations, or notice periods.

What if my end date is before my start date?

The calculator uses the absolute difference, so the order does not matter — it swaps the dates internally and shows the same duration either way, with a note telling you which date is earlier.

How is the total number of months worked out?

The whole calendar months figure is the years-and-months breakdown expressed in months (years times twelve plus the remaining complete months). It does not divide the total days by 30 because calendar months vary in length.

Are my dates kept private?

Yes. This date difference calculator runs entirely in your browser using JavaScript. The dates you enter are never uploaded, stored, or shared, so it is safe to use for private or sensitive planning.