Back to Elasticsearch

Date Parse

docs/reference/query-languages/esql/kibana/docs/functions/date_parse.md

9.4.4322 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

DATE PARSE

Returns a date by parsing the second argument using the format specified in the first argument.

esql
ROW date_string = "2022-05-06"
| EVAL date = DATE_PARSE("yyyy-MM-dd", date_string)