Skip to content

About the Add and Subtract Dates

Add or subtract years, months, weeks and days from a date. Month ends are clamped (31 January + 1 month is 29 February in 2024).

How to use it

Examples

Questions

How is it calculated?
years and months first (clamped to the last day of the month), then weeks and days
What does it assume?
Calendar-day arithmetic in the Gregorian calendar, with no time zones or daylight saving. Calendar days are not the same as elapsed hours. If the target month is shorter, the day becomes its last day (29 February + 1 year = 28 February).
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.