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
- Days between dates calculator: To compare the elapsed or inclusive day count between your original and resulting dates, enter both dates in this separate tool.
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.
Related calculators
Days Between Dates Calculator: Elapsed or Inclusive
Time Duration Calculator: Dates & Overnight Spans
Business Days Calculator: Workweeks & Exclusions