DATE_EXTRACT
edit
Extracts parts of a date, like year, month, day, hour. The supported field types are those provided by java.time.temporal.ChronoField
ROW date = DATE_PARSE("2022-05-06", "yyyy-MM-dd") | EVAL year = DATE_EXTRACT(date, "year")
date:date | year:long |
---|---|
2022-05-06T00:00:00.000Z |
2022 |