Date Add/Subtract Duration

Add or subtract days/months/years to/from a given date

Add or subtract years, months, and days from any date to get a new date. Handles month-end clamping (Jan 31 + 1 month = Feb 28/29) and shows the resulting weekday, with copy-ready output. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How are months added when the day does not exist?

Month math clamps to the last valid day. Adding one month to January 31 lands on February 28 (or 29 in a leap year) rather than spilling into March, which matches how most calendar libraries behave.

Add or subtract a duration from any date

This calculator shifts a date forward or backward by a combination of years, months, and days, and tells you the exact resulting calendar date and weekday. Use it for deadlines, contract end dates, subscription renewals, age milestones, or any “X days/months from now” question.

How it works

The calculation runs in two stages, both using UTC dates to prevent daylight-saving-time transitions from shifting the result by a day.

Stage 1 — months and years. The year and month components are applied first, and the day of month is clamped to the last valid day of the target month. This means Jan 31 + 1 month becomes Feb 28 (or Feb 29 in a leap year) rather than spilling into March, which matches how calendar applications handle the same operation.

Stage 2 — days. The day count is applied as exact 24-hour increments on top of the stage 1 result. Keeping months and days separate means “one month and ten days from 31 January” produces the intuitively correct date rather than the mathematically ambiguous one you’d get by summing day counts.

Month-end clamping examples

Start dateDurationResultNotes
31 Jan 2026+1 month28 Feb 2026Feb has 28 days in 2026
31 Jan 2028+1 month29 Feb 20282028 is a leap year
31 Jan 2026+1 month, +1 day1 Mar 2026Clamped Feb + 1 day = Mar
29 Feb 2028+1 year28 Feb 20292029 has no Feb 29
31 Dec 2025+2 months28 Feb 2026Dec → Feb, clamp

Practical uses

  • Subscription renewals — find the exact renewal date for a monthly or annual plan starting on any day
  • Contract end dates — add the term length to the effective date to find when notice must be served
  • Age milestones — add years to a birth date to find future birthdays, including the exact weekday
  • Trial periods — add 30 days to a free-trial start to find the billing date
  • Countdown targets — subtract a duration from an event to find when preparation should start

The resulting weekday is shown beneath the date, which is useful when a deadline must fall on a working day — if the result is a Saturday or Sunday, you immediately know to adjust forward or backward.