Days Between Dates Calculator

Calculate the exact number of days, weeks, months, and years between any two dates. Includes breakdowns in multiple units with optional time precision.

Runs in your browser. No data leaves your device.

Frequently Asked Questions

How does the Days Between Dates Calculator work?

The tool constructs two Date objects and orders them chronologically. For the year/month/day breakdown, it uses iterative calendar arithmetic -- subtracting year and month fields, then borrowing from the previous month's day count when the day difference is negative. For flat unit totals (weeks, hours, minutes), it subtracts the two Date objects to get a millisecond delta, then divides by the relevant constant.

What units does the result show?

The main display shows years, months, and days. Below that, stat cards break the duration into total months, weeks, days, hours, minutes, and seconds.

Can I include hours and minutes?

Yes. Toggle "Include time" to add start and end times for hour-and-minute precision in the calculation.

What if I enter the dates in the wrong order?

The tool works regardless of order. It calculates the absolute duration between the two dates, so start and end date are interchangeable.