Skip to content
All guides

A little guidance

Calendar duration: months, years and leap days

Understand why a month can be 28, 29, 30 or 31 days. Compare month-end dates, leap days and a full year using the same calculator.

Advertisements

Open Date Span

Month ends and leap days in real date ranges

We compared month-end and leap-year examples with the end date excluded. Calendar duration and total days describe the same interval using different units.

Date Span showing 31 January to 28 February 2026: 28 total days and a calendar duration of 1 month.
The target month has no 31st, so the calendar duration clamps to 28 February. View full size
Date Span showing 28 February to 1 March 2024: 2 days, including leap day.
The leap day adds one calendar day to this interval. View full size
Start → endTotal daysCalendar duration
31 January → 28 February 2026281 month
28 February → 1 March 202422 days
29 February 2024 → 28 February 20253651 year

Gregorian calendar rules are used for every supported year. A month is not a fixed 30-day unit.

Repeat this example

  1. Choose 31 January and 28 February 2026. Keep Include end date off and check 28 days and 1 month.
  2. Choose 28 February and 1 March 2024 to see 2 days.
  3. Choose 29 February 2024 and 28 February 2025 to compare 365 days with 1 calendar year.

Check the result

Calendar duration uses complete months and then remaining days. Leap-day anniversaries clamp to the last day of February in a non-leap year.

A common mistake

Dividing total days by 30 does not produce a calendar duration. Month lengths and leap years affect the result.

Try the dates in Date Span

Sources and credits

Actual Date Span sessions. Screenshots show the calculator using the stated dates. Tables match its displayed results; Copy result produces text rather than a file.

Compare total days with calendar duration

Total days is a count of calendar dates. Calendar duration groups that range into whole months and remaining days, with every 12 months shown as a year. They describe the same span in different ways; a month is not treated as a fixed 30 days. Leave Include end date off for these examples.

Try a month-end example

Choose 31 January 2026 through 28 February 2026. The result is 28 total days and 1 month. Date Span clamps the starting day to the last valid day of the target month when that month has no 31st. From 31 January through 30 March, it shows 1 month and 30 days, because 31 March has not yet been reached.

Check a leap day

From 28 February through 1 March 2024, there are 2 days: 28 February and leap day, 29 February. The equivalent range in 2025 is only 1 day. From 29 February 2024 through 28 February 2025, the calendar breakdown is 1 year, with 365 total days.

Choose a full year

Choose 1 January as Start date and 31 December as End date, then turn on Include end date. A normal year contains 365 days, while a leap year contains 366. For an exclusive-end equivalent, use 1 January of one year through 1 January of the next year.

Use the breakdown that fits the task

Use total days for daily counts and weeks for weekly planning. Use calendar duration when you want an anniversary-style description. The tool uses Gregorian rules across its supported range, rather than historical regional calendar changes, and does not measure hours or time-zone differences.

  • Date Span

    How to calculate days between two dates

    Find a date duration, choose whether to include the end date, and copy a clear breakdown. Compare a nine-day gap with a ten-day inclusive range.

Advertisements