Date calculator
Measure the exact calendar gap between dates, or move a date by years, months, weeks and days.
Did this calculator give you what you needed?
What could be better?
Calendar difference, not an average month
The result walks through full calendar years and months first, then counts the remaining weeks and days. It does not treat every month as 30 days.
How month-end dates are handled
When adding months, the day is clamped to the last valid day of the target month. One month after January 31 is February 28 in a common year and February 29 in a leap year.
A worked example
Take March 15, 2024 to July 2, 2026. The calculator first counts the full years: two of them, which lands on March 15, 2026. Then the full months: three more, to June 15, 2026. What is left is 17 days, which the result shows as 2 yr 3 mo 2 wk 3 d, with 839 total days underneath.
The two figures describe the same gap in different units, and neither is more correct than the other. Calendar units are what a contract, a lease or an anniversary is written in; total days are what you want for interest, incubation periods and anything counted in whole days.
Frequently asked questions
Does the difference include the start date, the end date, or both?
Neither endpoint is double-counted: the result is the gap between the two dates. From the 1st to the 8th of a month is seven days, not eight. If you are counting occupied days rather than the interval between them, for example nights in a hotel against days of a rental, add one to the total yourself.
Why do the years, months and days not add up to the total days figure?
Because a calendar month is not a fixed number of days. Three months can be 89, 90, 91 or 92 days depending on which months they are, so a gap expressed as "two years, three months and 17 days" cannot be turned back into a day count by multiplication. The calculator shows both figures precisely because they answer different questions.
Can I subtract a period instead of adding one?
Yes. Switch the calculation to "Add or subtract from a date", then set the direction to Subtract. The same clamping rule applies in reverse: one month before March 31 is February 28 or February 29, because the 31st does not exist in February.
Do time zones or daylight saving change the answer?
No. This is date arithmetic, not clock arithmetic. The calculator works on calendar dates, so the hour of day, your time zone and the one-hour clock shifts in spring and autumn have no effect. If you need the hours and minutes between two clock readings, use the time duration calculator instead.
How far back does it work?
It uses the proleptic Gregorian calendar, which extends today’s calendar rules backwards indefinitely. That matches how databases and spreadsheets count, but for dates before the Gregorian reform, which most of Europe adopted in 1582 and Britain and its colonies not until 1752, a historical record may be written in the Julian calendar and sit up to 11 days away from what you see here.
More tools
Count weekdays and optional US federal holidays.
Time durationFind hours and minutes between two clock times.
Time cardTotal weekly shifts and subtract unpaid breaks.
Age calculatorFind calendar age on today or another date.
Military timeConvert between 12-hour and 24-hour clock times.
Decimal timeConvert hours and minutes to decimal hours and back.