Problems / Date Extraction / Editorial
EXTRACT pulls specific components from date/timestamp values.
You can also extract DAY, HOUR, MINUTE, SECOND, and other parts. DuckDB also supports shorthand functions like year() and month().
year()
month()
Solve Date Extraction yourself →