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