snowflake.snowpark.functions.months_between¶
- snowflake.snowpark.functions.months_between(date1: ColumnOrName, date2: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.1.0/src/snowflake/snowpark/functions.py#L1579-L1585)¶
Returns the number of months between two DATE or TIMESTAMP values. For example, MONTHS_BETWEEN(‘2020-02-01’::DATE, ‘2020-01-01’::DATE) returns 1.0.