STR2DATE (Lakehouse v2)
Parses a string into a date using a format string. Alias for STR_TO_DATE.
Analyze Syntax
Section titled “Analyze Syntax”func.str2date(<str>, <format>)Analyze Examples
Section titled “Analyze Examples”func.str2date('2024/06/15', '%Y/%m/%d')
┌──────────────┐│ '2024-06-15' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”STR2DATE(<str>, <format>)SQL Examples
Section titled “SQL Examples”SELECT STR2DATE('2024/06/15', '%Y/%m/%d');
┌────────────┐│ 2024-06-15 │└────────────┘