Date Difference Calculator
Find the exact time between two dates in years, months, days, weeks, and hours.
About the Date Difference Calculator
The Date Difference Calculator tells you exactly how much time sits between two dates. Pick a start date and an end date, and it returns the span two ways: a human-readable breakdown of years, months, and days, plus the whole duration expressed as total days, total weeks (with leftover days), total months, and total hours. The result appears the instant both dates are valid, and everything is computed right in your browser — nothing you type is ever sent to a server.
Working out the gap between two dates by hand is deceptively fiddly. Months vary from 28 to 31 days, leap years slip an extra day into February, and the quick "divide by 30" or "divide by 365" tricks drift further off the longer the span. This calculator does proper calendar arithmetic instead. It borrows days from the correct preceding month using that month's real length and counts whole months and years the way a person naturally would, so "2 years, 3 months, and 12 days" lines up with how you'd tally it yourself. It is ideal for counting down to a deadline, measuring a project's length, checking a contract or notice period, planning a trip, or figuring out how long ago something happened.
How to use
- Choose a start date using the picker in the first field.
- Choose an end date in the second field.
- Optionally tick "Include the end day" to count the final day itself as a full day — helpful when both the first and last day should count, such as a rental or booking.
- Read the exact span in years, months, and days at the top of the result.
- Review the total days, weeks, months, and hours in the stat cards for the whole duration in a single unit each.
- Use the Copy result button to grab a plain-text summary you can paste anywhere.
If you enter the dates in the wrong order, the tool doesn't complain — it shows the absolute span and notes that the end date came before the start date. The result recalculates the moment you change either field, so you can compare scenarios freely.
Frequently asked questions
How is the difference between two dates calculated?
The calculator compares the two dates one component at a time — years, then months, then days. When the end day falls earlier in the month than the start day, it borrows the correct number of days from the preceding month, using that month's real length. When the end month is earlier than the start month, it borrows twelve months from the year count. Total days, weeks, months, and hours are then derived from the same span, so every figure describes the identical stretch of time in a different unit.
Does it account for leap years?
Yes. Because the calculation works from real calendar dates rather than a fixed-length year, any February 29th between your two dates is counted automatically. The total-days figure reflects every actual day in the range, including leap days, so it stays accurate over spans of any length.
What does "Include the end day" do?
By default the calculator measures the gap between the two dates, which excludes the end day itself — the way you'd count nights in a hotel. Ticking "Include the end day" adds one full day so both the start and end dates are counted, which is what you want when tallying inclusive periods like billing cycles, rentals, or event durations.
What happens if the end date is before the start date?
The tool takes the absolute difference and shows a short note explaining that the end date came before the start date. You'll still get a correct, positive span rather than a negative or confusing result. Swap the dates if you'd prefer the note to disappear.
Why are total weeks, months, and hours different from the years-and-days line?
They're simply different ways of expressing the same duration. The years-months-days line is the readable breakdown, while total days, weeks, months, and hours each restate the entire span in one unit. A gap of "1 year, 2 months" is also roughly 14 total months, about 61 total weeks, and several thousand hours — all describing the same stretch of time.
Are my dates stored or sent anywhere?
No. This tool is entirely client-side. Every calculation runs in your browser, and nothing is uploaded, logged, or saved. Once the page has loaded it even works offline, so the dates you enter stay completely private.