Date Difference Calculator

Enter the relevant dates or times in the Date Difference Calculator to calculate date Difference. The explanation below the tool helps you check what the result represents.

Difference
—
Total days—
Total weeks—
Total months—
Total hours—
✉ Email me this result
</> Embed this calculator

Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.

How it works

The calculator counts complete years between the two dates, then the remaining whole months, then the leftover days, adjusting for the different lengths of each month and for leap years. The totals convert the whole span into a single unit, such as the total number of days.

How to use the Date Difference Calculator

Enter the values requested by the tool and start with one realistic example. Read the result together with its unit or label, then change one input at a time if you want to compare options. Keeping a note of the original figures makes the calculation easier to check later.

Dates, daylight saving and time zones can affect a result. Check the displayed inputs if the period crosses a calendar or location boundary.

Frequently Asked Questions

Does it count leap years?
Yes. Leap years are handled automatically, so the day counts are accurate.
Can the end date be before the start date?
Yes. The calculator still shows the size of the gap and notes that the order is reversed.
Is the end date included in the count?
The total days count the number of days from the start date up to the end date.