[MySQL] Add or subtract calendar days from a date

Created on November 30, 2026

Use INTERVAL N DAY to add or subtract a number of days. The first expression adds five days, and the second subtracts five days.

SELECT '2022-07-20' + INTERVAL 5 DAY AS five_days_later,
       '2022-07-20' - INTERVAL 5 DAY AS five_days_earlier;

The results are 2022-07-25 and 2022-07-15, respectively.

MySQL