date_add
Move a date or timestamp forward or backward by an interval.
Try an expression
In Formula, enter the expression and set Output type to TIMESTAMP.
Expression
date_add(DATE '1992-09-15', INTERVAL 2 MONTH)Result
1992-11-15 00:00:00To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
date_add(date, interval)- date
- Any value
- interval
- Any value
Supported signatures (1)
date_add(date: ANY, interval: ANY)The result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.