Date Add Calculator
Add years, months, and days to a starting date to find the resulting date.
Enter your values and click Calculate
How It Works
The start date is constructed as a UTC midnight Date object. Years are added by calling setUTCFullYear(year + addYears), months by setUTCMonth(month + addMonths), and days by setUTCDate(day + addDays). Each setter is applied separately so that month-end clamping occurs at the correct step: if the start date is January 31 and you add 1 month, setUTCMonth moves to February and the Date constructor clamps February 31 to February 28 (or 29). Days are added last so that adding 1 day to February 28 correctly yields March 1. All operations use UTC to prevent DST clock shifts from affecting the result. Total days added is computed as the millisecond difference between the result and the start, divided by 86,400,000.