TO_DAYS (Lakehouse v2)
Converts a date to a day count.
Analyze Syntax
Section titled “Analyze Syntax”func.to_days(<date>)Analyze Examples
Section titled “Analyze Examples”func.to_days('2024-01-01')
┌────────┐│ 738886 │└────────┘SQL Syntax
Section titled “SQL Syntax”TO_DAYS(<date>)SQL Examples
Section titled “SQL Examples”SELECT TO_DAYS('2024-01-01');
┌────────┐│ 738886 │└────────┘