c+CalcLantern

Date Calculator: Add or Subtract Days, Months & Years

Add or subtract signed years, months and days from a date. Compare calendar-month shifts with day offsets and see how month-end clamping works.

One month is not the same as 30 days

Start at January 31, 2025. Enter Years = 0, Months = 1 and Days = 0: the result is February 28, 2025, because February has no 31st day. Now use Years = 0, Months = 0 and Days = 30: the result is March 2, 2025.

Years and months form one combined month offset. The calculator clamps the original day to the last valid day of that destination month, then applies the day offset. For January 31, 2025 with 1 month and 1 day, that means February 28 plus one day: March 1.

Use negative values to subtract. Month-end clamping can lose the original day, so adding one month and then subtracting one month is not always reversible. These are calendar days, not business days or legal-deadline rules.

Related task

To reproduce these illustrations, enter their stated inputs. Reset to example values restores the calculator’s separate default inputs.

How this works

Combine years and months into one month offset. If that month lacks the original day, use its last day; apply the day offset afterward. Example: January 31 + 1 month in 2024 is February 29.

Example

Using the example inputs, resulting date is 2024-02-29.

Starting date
2024-01-31
Years (negative to subtract)
0
Months (negative to subtract)
1
Days (negative to subtract)
0
Resulting date
2024-02-29

Years and months are combined first. Clamp to the last valid day of that month, then apply days.

Scope and assumptions

Gregorian years 0001–9999 only. Clamping is not reversible: January 31 + 1 month − 1 month may be January 29. No business-day or legal deadline rules.

MDN: UTC date methods

Related calculators

Days Between Dates Calculator: Elapsed or Inclusive

Time Duration Calculator: Dates & Overnight Spans

Business Days Calculator: Workweeks & Exclusions

Weekday & ISO Week Number Calculator

Printable Monthly Calendar: Monday or Sunday Start

BUILT FOR CLARITY

Useful tools. Honest answers.

An original collection of calculators for everyday estimates and learning.

Calculations run in your browser. Our calculator code processes your inputs locally. Optional Google Analytics runs only after you allow it. Normal public pages also load Google’s AdSense tag independently of that choice; it may make advertising requests even without visible ads. See our Privacy notice. Results are estimates within each tool’s stated scope, not professional advice.

Financial, health and building-related tools have specific limitations. Check important decisions with a qualified professional. No live currency rates, tax tables or current price feeds are connected.