How to Add or Subtract Days, Weeks, Months, and Years from a Date
Enter a starting date in `YYYY-MM-DD` form, choose day, week, month, or year adjustments, and select addition or subtraction. The result includes the new calendar date along with its weekday, ordinal day, and ISO week number.
Enter a starting date in YYYY-MM-DD form, choose day, week, month, or year adjustments, and select addition or subtraction. The result includes the new calendar date along with its weekday, ordinal day, and ISO week number.
What this date calculator does
Use Date Add/Subtract to move a calendar date forward or backward by a chosen number of days, weeks, months, or years. It is useful for planning deadlines, checking future dates, and finding a date before or after a known calendar date. The calculation concerns calendar dates, not time of day, time zones, or timestamps.
You can enter a starting date in YYYY-MM-DD form. The date field is optional; when it is blank, the tool uses 2024-06-15. Day, week, month, and year adjustments are optional too, and their numeric values default to zero. The operation defaults to addition.
How to add or subtract from a date
- Enter the starting date in
YYYY-MM-DDform, such as2024-01-10. Leave it blank only if you want to use the default starting date. - Enter the adjustment amounts you need. Use days for a day offset, weeks for seven-day increments, and months or years for calendar-based changes. You can provide more than one type of adjustment in the same calculation.
- Select the operation for moving the date forward or backward. Addition applies the supplied adjustments; subtraction reverses them.
- Run the calculation and review the returned date. If you entered a date in a different format or one that cannot be parsed, correct it and try again.
For month and year adjustments, the tool first moves the date to the target calendar month and year. If the original day does not exist in that destination month, it uses that month's last day. Day and week offsets are applied after the month or year adjustment. This matters for dates near the end of a month.
How to read the result
A successful result includes more than the calculated calendar date. It also provides the date's weekday, its ordinal day within the year, and its ISO week number, so you can check the result in several calendar terms.
A week adjustment is treated as seven days. For example, adding one day to 2024-01-01 results in 2024-01-02, while subtracting five days from 2024-01-10 results in 2024-01-05. Adding one month to 2024-01-01 results in 2024-02-01.
If the starting date cannot be parsed in the required form, the result indicates an error instead of returning a calculated date. A calculation that falls outside the supported date range also carries an out-of-range error indication. These boundaries mean that a valid-looking plan may still need a different input or a smaller adjustment.
Worked example
A project manager wants the calendar date one month after January 1, 2024.
Enter 2024-01-01, set the month adjustment to 1, leave the other adjustments at zero, and run the addition calculation.
The result contains 2024-02-01 plus its weekday, ordinal day within the year, and ISO week number.
Limitations
- Dates that cannot be parsed in the required form return an error indication instead of a calculated date.
- A calculation outside the supported date range carries an out-of-range error indication.
Common errors
- Entering a date such as
01/10/2024instead of the requiredYYYY-MM-DDform can produce an error indication. Re-enter it as2024-01-10before running the calculation.
FAQ
What happens if I leave the starting date blank?
If the date field is blank, the calculation uses 2024-06-15. To use another starting point, enter it in YYYY-MM-DD form.
Can I subtract days, weeks, months, or years?
Yes, when the required operation value is subtraction, all supplied adjustment amounts are reversed. Other operation values follow the addition path.
How does the calculator handle months with fewer days?
When a month or year move reaches a month without the original day, the date is reduced to that destination month's last day. Day and week offsets are then applied.