Find the exact calendar distance between two dates, compare total days and weeks, or add and subtract calendar units with safe month-end handling.
Calendar difference and total days answer related but distinct questions. Calendar difference advances through complete years and months using their actual lengths, then counts remaining days. Total days counts exact date boundaries using UTC date-only arithmetic, avoiding daylight-saving shifts.
The calculation uses actual Gregorian month and year boundaries; a month is never assumed to be 30 days.
difference = complete calendar years + complete calendar months + remaining daysHours, minutes, and seconds are equivalents of whole calendar days, not DST-aware timestamp durations.
weeks = total days ÷ 7; hours = days × 24; minutes = hours × 60; seconds = minutes × 60Units are applied in years, months, weeks, then days order. Year and month operations clamp to the final valid day when necessary.
result = start ± years ± months ± weeks ± daysJanuary 1, 2026 to January 2, 2026 is 1 elapsed day. Including the end date counts 2 calendar dates without changing the exact calendar decomposition.
January 15, 2025 to March 20, 2026 is 1 year, 2 months, and 5 days. Total days are derived separately from exact date boundaries.
January 31, 2026 plus 1 month clamps to February 28, 2026; in leap year 2024 it clamps to February 29.
The default total excludes the end date. Include end date adds one calendar date to total-day and week counts while preserving the exact distance decomposition.
An earlier end date is not silently swapped. The result states that it is before the start date; Absolute difference can show positive duration totals.
If the original day is unavailable after adding a month or year, the result uses the destination month's final valid day.
Months range from 28 to 31 days, and leap years change February. Completed calendar months therefore use date anchors instead of dividing total days by 30.
Gregorian leap-year rules are applied. Adding one year to February 29, 2024 clamps to February 28, 2025 because February 29 does not exist that year.
The calculator applies years first, then months, then weeks, then days. Keeping 30 days separate from one month prevents ambiguous month-length assumptions.
Count the midnight date boundaries from the start date to the end date. CalcRocket performs this using UTC date-only values so time zones do not change the count.
Calendar difference reports complete years, months, and remaining days. Total days counts all date boundaries directly; it is not divided into average months or years.
Not by default. Enable Include end date to count both endpoints. This changes day and week totals but not the exact distance between the dates.
The calculator uses Gregorian leap-year rules and actual February lengths.
Calendar months contain 28, 29, 30, or 31 days, so completed months are measured by calendar boundaries.
The date clamps to the last valid day of February: February 28 in a common year or February 29 in a leap year.
Yes. The calculator preserves the entered direction and explains that the end date is before the start. Enable Absolute difference for positive totals.
No. Inputs are calendar dates without times and are calculated in a timezone-safe date-only system.
Yes. The exclusive difference is zero days; enabling end-date inclusion counts one calendar day.