## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> ADD_MONTHS[ADD_MONTHS]:::quoted
ADD_MONTHS[ADD_MONTHS] --> End((END))
```
## Purpose
The `ADD_MONTHS` SQL function adds a number of months to a `datetime`.
Parameters:
- Date: `datetime` to add the months to.
- Months: the number of months to add.
Returns: A new `datetime` with the number of months added.
## Examples
`ADD_MONTHS` adds 11 months to March 15, 2020:
```sql
select to_char(add_months(to_date('20200315', 'YYYYMMDD')), 'YYYYMMDD')
--------
20210215
```