DATE_FORMAT (Lakehouse v2)
根据格式字符串格式化日期或日期时间值。
Analyze 语法
Section titled “Analyze 语法”func.date_format(<date>, <format>)Analyze 示例
Section titled “Analyze 示例”func.date_format('2024-06-15', '%Y/%m/%d')
┌──────────────┐│ '2024/06/15' │└──────────────┘SQL 语法
Section titled “SQL 语法”DATE_FORMAT(<date>, <format>)SQL 示例
Section titled “SQL 示例”SELECT DATE_FORMAT('2024-06-15', '%Y/%m/%d');
┌────────────┐│ 2024/06/15 │└────────────┘