TO_DATE (Lakehouse v2)
Converts a datetime to a date.
Analyze Syntax
Section titled “Analyze Syntax”func.to_date(<datetime>)Analyze Examples
Section titled “Analyze Examples”func.to_date('2024-06-15 14:30:00')
┌──────────────┐│ '2024-06-15' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”TO_DATE(<datetime>)SQL Examples
Section titled “SQL Examples”SELECT TO_DATE('2024-06-15 14:30:00');
┌────────────┐│ 2024-06-15 │└────────────┘