How many days until the deadline? How long between two events? Counting on a calendar invites off-by-one errors and leap-year slips. This calculator returns the exact gap between any two dates in days, weeks, and approximate months.
Como funciona
Both dates are converted to absolute timestamps and subtracted, so month lengths and leap years are handled automatically. The result is shown as whole days, then as weeks (÷ 7) and average months (÷ 30.44).
A fórmula
30.44 is the average month length (365.25 ÷ 12). The order of dates doesn't matter — the difference is absolute.
Exemplo resolvido
From 1 January 2026 to 19 July 2026: 199 days, which is about 28.4 weeks or roughly 6.5 average months.
Perguntas frequentes
Is the end date included in the count?
This counts the nights between the dates: Monday to Wednesday is 2 days. For inclusive counting (e.g., rental days covering both endpoints), add 1 to the result.
Why is the months figure approximate?
Because months vary from 28 to 31 days, 'months between dates' has no single exact answer. Dividing by the 30.44-day average gives the most useful general-purpose figure.
Does the calculator handle leap years?
Yes — the subtraction works on real calendar dates, so 29 February is counted whenever it falls inside the interval.