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