In MySQL, you can use the ADDDATE()
function to add a specified amount of time to a date. For example, you could use it to add 10 days to a given date. You can specify whether to add days, weeks, months, quarters, years, etc. You can also add a time value, such as seconds, microseconds, etc.
The ADDDATE()
function is a synonym for the DATE_ADD()
function (they both do the same thing) when using the first syntax listed below.
This article contains examples to demonstrate usage of the ADDDATE()
function.