FROM_ISO8601_DATE
Descriptionβ
Converts an ISO8601 formatted date expression to a DATE type date expression.
Syntaxβ
from_iso8601_date(<dt>)
Parametersβ
Parameter | Description |
---|---|
<dt> | An ISO8601 formatted date |
Return Valueβ
A DATE type date expression.
Examplesβ
SELECT from_iso8601_date('0000-01'),from_iso8601_date('0000-W01'),from_iso8601_date('0000-059');
+------------------------------+-------------------------------+-------------------------------+
| from_iso8601_date('0000-01') | from_iso8601_date('0000-W01') | from_iso8601_date('0000-059') |
+------------------------------+-------------------------------+-------------------------------+
| 0000-01-01 | 0000-01-03 | 0000-02-28 |
+------------------------------+-------------------------------+-------------------------------+