Skip to content

Date Calculators

Date Difference Calculator

Enter two dates and the calculator returns the total days and weeks between them plus a calendar breakdown in years, months, and days.

Date difference

Total days

30

4 weeks, 2 days

Calendar breakdown

Years0
Months0
Days30

Dates are counted as whole calendar days, so timezone and daylight-saving shifts do not affect the total. The breakdown accounts for uneven month lengths and leap years.

About this calculator

A free date difference calculator that measures the span between two dates two ways: as a running total of days and weeks, and as a calendar breakdown of years, months, and days. The calendar breakdown accounts for leap years and uneven month lengths, so the figure matches how people actually count age and anniversaries. Dates are treated as whole calendar days, so timezone and daylight-saving shifts never change the result. Everything is computed in your browser.

Two ways to measure a span

"How long between these dates?" has two right answers. The total-days view counts every day in the span and also expresses it in weeks plus leftover days — useful for deadlines, billing periods, and counting down. The calendar view says the same span is, for example, 2 years, 3 months, and 5 days, which is how people describe age and anniversaries. The calculator shows both so you can pick whichever the situation calls for.

The calendar breakdown is the subtle one. Months are not all the same length, so "one month" can be 28 to 31 days. The tool borrows days from the actual preceding month and then borrows months from years, which is why its years-months-days answer lines up with common sense rather than a flat 30-day-month approximation.

Calendar days, not clock time

Every date is anchored to midnight UTC before the subtraction, so the result is a count of whole calendar days regardless of your timezone or whether daylight saving changed in between. That avoids the classic off-by-one error where a late-evening start and an early-morning end appear to be a day apart when they are not.

The order of the two dates does not matter — the span is always reported as a positive number. Swap start and end and you get the same answer, which makes the tool equally suited to counting forward to a future date or back to a past one.

By variant

Questions

Is the date difference calculator free?
Yes. It is free, needs no account, and runs entirely in your browser; the dates you enter are not uploaded or stored.
Does it account for leap years?
Yes. The calendar breakdown uses the real length of each month and year, including leap days, so the years-months-days result is accurate.
Why are there two different totals?
One total counts every calendar day (and the same span in weeks); the other breaks it into years, months, and days. Both describe the same span — one is better for deadlines, the other for ages and anniversaries.
Does timezone affect the result?
No. Dates are counted as whole calendar days at UTC midnight, so timezone and daylight-saving changes do not shift the day count.