add_months
The add_months function adds a given number of months to a date or date column.
Category
Date
Return value
Date
Where
|
<original_date> |
The starting year. month.date. For example 2020.10.01. The data type is datetime. |
|
<months_to_add> |
The number of months to add to the <original_date>. The data type is integer |
Details
Enter an integer for <months_to_add>. If <original_date> is the last day of the month, or the resulting month has fewer days than the day component of <original_date>, the result is the last day of the resulting month. Otherwise, the result has the same day component as <original_date>.