DAYS_DIFF (Lakehouse v2)
Returns the number of days between two dates.
Analyze Syntax
Section titled “Analyze Syntax”func.days_diff(<end_date>, <start_date>)Analyze Examples
Section titled “Analyze Examples”func.days_diff('2024-03-01', '2024-01-01')
┌────┐│ 60 │└────┘SQL Syntax
Section titled “SQL Syntax”DAYS_DIFF(<end_date>, <start_date>)SQL Examples
Section titled “SQL Examples”SELECT DAYS_DIFF('2024-03-01', '2024-01-01');
┌────┐│ 60 │└────┘