Skip to content

Adds a specified number of months to a date.

func.add_months(<date>, <months>)
func.add_months('2024-01-31', 1)
┌──────────────┐
│ '2024-02-29' │
└──────────────┘
ADD_MONTHS(<date>, <months>)
SELECT ADD_MONTHS('2024-01-31', 1);
┌────────────┐
│ 2024-02-29 │
└────────────┘