You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.months_between¶

snowflake.snowpark.functions.months_between(date1: ColumnOrName, date2: ColumnOrName) → Column[source]¶

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.