WEEKS_DIFF
Learn how to use the WEEKS_DIFF date/time function in PlaidCloud Lakehouse. Returns the number of weeks between two dates - with syntax and examples.
Returns the number of weeks between two dates.
Analyze Syntax
func.weeks_diff(<end_date>, <start_date>)
Analyze Examples
func.weeks_diff('2024-03-01', '2024-01-01')
┌───┐
│ 8 │
└───┘
SQL Syntax
WEEKS_DIFF(<end_date>, <start_date>)
SQL Examples
SELECT WEEKS_DIFF('2024-03-01', '2024-01-01');
┌───┐
│ 8 │
└───┘