snowflake.snowpark.functions.daydiff¶
- snowflake.snowpark.functions.daydiff(col1: Union[Column, str], col2: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/src/snowflake/snowpark/functions.py#L4344-L4361)¶
Calculates the difference between two dates, or timestamp columns based in days. The result will reflect the difference between
col1 - col2- Example::