Parameter | Type |
---|---|
dateValue | datetimestamp, datetime, date, time, gyear, gyearmonth |
formatString | string |
Returns: string
Example
query:
SELECT DATE_FORMAT(CAST("2018-01-02" AS DATE), "yyyy.MM.dd G 'at' HH:mm:ss z")
results:
date_format |
---|
2018.01.02 AD at 00:00:00 UTC |