Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 10, 2022
Send us feedback
date_add
Returns the date numDays after startDate.
numDays
startDate
date_add(startDate, numDays)
startDate: A DATE expression.
numDays: An INTEGER expression.
A DATE.
If numDays is negative abs(num_days) are subtracted from startDate.
abs(num_days)
If the result date overflows the date range the function raises an error.
> SELECT date_add('2016-07-30', 1); 2016-07-31
date_from_unix_date function
date_sub function
datediff function
months_between function
timestampadd function