snowflake.snowpark.functions.add_months¶
- snowflake.snowpark.functions.add_months(date_or_timestamp: Union[Column, str], number_of_months: Union[Column, int]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.6.1/src/snowflake/snowpark/functions.py#L449-L461)¶
Adds or subtracts a specified number of months to a date or timestamp, preserving the end-of-month information.
Example