Loading

ES|QL DAY_NAME function

Embedded
date

Date expression. If null, the function returns null.

Returns the name of the weekday for date based on the configured Locale.

date result
date keyword
date_nanos keyword
ROW dt = to_datetime("1953-09-02T00:00:00.000Z")
| EVAL weekday = DAY_NAME(dt);