MONTHS BETWEEN UDF [DEPRECATED]
Last updated
Last updated
This UDF has been deprecated. Current transformation for Oracle is Snowflake .
MONTHS_BETWEEN
returns number of months between datesdate1
anddate2
. ()
Oracle MONTHS_BETWEEN
and Snowflake MONTHS_BETWEEN
function, have some functional differences, to minimize these differences and replicate Oracle MONTHS_BETWEEN
function better, we added a custom UDF.
Parameters
FIRST_DATE: The first TIMESTAMP_LTZ
of the operation.
SECOND_DATE: The second TIMESTAMP_LTZ
of the operation.
Some results may differ in the number of decimal digits.