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.16.0/src/snowflake/snowpark/functions.py#L4240-L4257)¶
Calculates the difference between two dates, or timestamp columns based in days. The result will reflect the difference between
col1 - col2- Example::