How to find the resulting date
Enter a start date, choose Add days or Subtract days, and enter a nonnegative whole number of days (0 if none). Expand Calendar years, months and weeks to enter additional offsets. Select Calculate to see the resulting date in YYYY-MM-DD format. Try example fills the fields without calculating. Reset clears the date and day count, and restores Add days.
The start is day zero. Adding 1 means the next date; subtracting 1 means the previous date. Adding or subtracting 0 leaves the date unchanged. Changing the operation preserves all offsets. You can also enter nonnegative whole years, months and weeks. Years and months combine into one calendar shift; the day clamps once to the last valid day of the target month. Then weeks (seven days each) and days are applied. Months are never treated as 30 days.
Method and examples
The calculator checks the start date, counts it as a whole UTC day number, then adds or subtracts the days you entered to find the new date. This follows the ECMAScript Gregorian calendar model. setUTCFullYear preserves years 0001–0099 without a 1900 offset. Results are exact dates; no rounding is applied.
| Start date | Operation | Result |
|---|---|---|
| 2024-02-28 | Add 2 days | 2024-03-01 |
| 2024-03-01 | Subtract 2 days | 2024-02-28 |
| 2024-02-29 | Add 0 days | 2024-02-29 |
| 2024-12-31 | Add 1 day | 2025-01-01 |
| 0099-12-31 | Add 1 day | 0100-01-01 |
Calendar offsets and repeating
2024-01-31 + 1 month is 2024-02-29. 2024-02-29 + 1 year is 2025-02-28, but + 1 year and 1 month in one calculation is 2025-03-29 because the clamp happens once. Adding 1 month and 1 day to 2024-01-31 gives 2024-03-01.
Repeat uses the previous successful result as the new start with the same offsets. January 31 → February 29 → March 29 for repeated one-month shifts in 2024. Separate operations can differ from one combined shift. Undo restores the full snapshot before the last successful Repeat; it does not try to reverse a clamp. Manual edits hide the old result and disable Repeat. Reset clears Undo. The weekday uses the calendar day number without the visitor’s time zone.
Assumptions and limits
Every calendar date counts, including weekends, public holidays and leap days. The tool uses the Gregorian calendar throughout years 0001–9999, including historical dates before local adoption. Start and result must stay in that range; impossible dates such as February 29, 2023 are rejected.
Every offset must be a nonnegative safe whole integer (at most 9,007,199,254,740,991), and the combined arithmetic must remain safe. The intermediate month shift and final result must both stay in the supported date range.
The day count must be a whole number from 0 to 3,652,058, the greatest distance within the supported range. A smaller count can still exceed the range near either boundary. Use the operation control to subtract instead of entering a negative number.
This calculation has no clock times or local time zones. It does not calculate working days or apply court, employment, tax or contract deadline rules. For those tasks, confirm the required calendar and counting convention separately.
Related tools
If you know both dates, use Date Difference to count elapsed days or include both dates. For clock-time intervals, use Time Duration.