Calculate a future date or time.
Section: date and time functions
Add an interval to a date
sql
sql
SELECT DATE_ADD(NOW(), INTERVAL 7 DAY) AS one_week_from_now;Explanation
Common in expiration, scheduling, and retention logic.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing date and time functions