Date Difference Calculator

Free date difference calculator. Find the time between two dates in years, months and days, plus total days, weeks and hours — and add or subtract days from any date.

✓ Free ⚡ Instant 🔒 100% private

Difference between two dates

Total days

Weeks

Months (approx)

Total hours

Add or subtract days from a date

🔒 Dates are processed in your browser — nothing is uploaded.

Advertisement

Free Date Difference Calculator

This free online date difference calculator tells you exactly how much time is between any two dates. Pick a start date and an end date and it shows the gap as a calendar breakdown of years, months and days, plus handy totals in days, weeks, months and hours. There is also a quick add or subtract days tool to find a future or past date. It’s free, instant and runs entirely in your browser, so your dates are never uploaded.

How to use the date difference calculator

  1. Pick a start date in the first box.
  2. Pick an end date in the second box.
  3. Optionally tick Include the end day if you want both the start and end dates counted.
  4. Click Calculate difference to see the years/months/days breakdown and all the totals.
  5. To find a future or past date, use the second card: enter a date and a number of days (use a minus sign to subtract), then click Get resulting date.

How the difference is calculated

There are two useful ways to measure the gap between two dates, and this tool gives you both. The calendar breakdown (for example “2 years, 1 month, 5 days”) is how people naturally describe a duration. It is worked out by comparing the day, then the month, then the year, and “borrowing” from the next unit when needed — which is why it correctly accounts for months having different lengths and for leap years. The total days figure is the raw number of calendar days between the dates, and from it we derive weeks (with leftover days), an approximate number of months, and the total hours.

The optional include the end day setting adds one day to the count so that both endpoints are included — useful when you are counting things like the number of days in a booking, an event or a notice period where the last day still counts. Because the calculator uses real calendar maths, February 29 in leap years and the varying lengths of each month are all handled automatically. For example, from 1 January 2024 to 1 March 2024 it returns 60 days, because 2024 is a leap year and February has 29 days.

Frequently asked questions

Is this date difference calculator free and private?
Yes. It’s completely free with no sign-up, and all calculations happen in your browser with JavaScript. The dates you enter are never uploaded to a server.
How many days are between two dates?
Enter your start and end dates and click Calculate difference. The tool shows the total number of calendar days between them, along with the same gap expressed in weeks, months and hours, and a full years/months/days breakdown.
Does it count both the start and end day?
By default the count is the gap between the two dates, so the start day is the zero point. If you tick Include the end day, the calculator adds one so that both the start and end dates are counted — handy for bookings, events and notice periods.
Does it handle leap years correctly?
Yes. It uses real calendar maths, so February 29 in leap years and the different lengths of each month are all accounted for automatically. For example, 1 January 2024 to 1 March 2024 returns 60 days because 2024 is a leap year.
How do I add or subtract days from a date?
Use the second card. Enter a start date and the number of days you want, then click Get resulting date. Type a positive number to add days and find a future date, or put a minus sign in front of the number to subtract days and find a past date.
Advertisement