Skip to content

Date & Time

Add or Subtract Days from Date

Add or subtract days, weeks, months, or years from any date — with correct end-of-month clamping (Jan 31 + 1 month = Feb 28/29).

Resulting date
2026-11-19 (Thursday)

Month arithmetic clamps to the last valid day (Jan 31 + 1 month = Feb 28/29). Leap years handled automatically.

Adding Months Is Not Adding Days

Day arithmetic is unambiguous; month arithmetic is not, because month lengths differ. "One month after August 31" lands on October 1 in some systems and September 30 in others — there is no August 31 + 1 month in September. Contract and billing dates should state the convention explicitly (end of month, same day-of-month clamped, or fixed 30-day periods). The other recurring trap is timezones on the boundary: adding 24 hours across a DST change yields a 23- or 25-hour shift in local wall time.

How the Dates Are Calculated

  1. Enter the starting date.
  2. Enter the amount and unit: days, weeks, months, or years, and the direction (add or subtract).
  3. Month arithmetic clamps to the last valid day when needed, so no impossible dates like Feb 31.
  4. The resulting date is shown with its weekday name for planning.
Formula & Technical Standard
Month/year arithmetic clamps the day-of-month to the target month’s length; leap years handled by the calendar engine.

Worked Example

End-of-month edge case
Input: 2026-01-31 + 1 month
Output: 2026-02-28
January 31 plus one month cannot be February 31; the standard convention clamps to the last day of February.
Warranty expiry
Input: Purchase date + 730 days
Output: Exact expiry date with weekday
Day-based addition is exact regardless of month lengths, unlike month-based estimates.

Common Questions

Why does adding one month sometimes shorten the day?

When the source day does not exist in the target month (the 31st in a 30-day month), the date clamps to that month’s last day — the universal convention in legal and accounting contexts.

Does subtracting work the same way?

Yes, with identical clamping rules applied in reverse.