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