DATE_PART
Pulls a single part out of a date or time — the same as EXTRACT, but as a regular function.
Syntax
DATE_PART('<field>', <date or time>)
Returns the year, month, day, hour and so on. It does the same as EXTRACT, except the field is written in quotes as the first argument: DATE_PART('month', created_at). The difference is the type: DATE_PART returns double precision, while EXTRACT returns numeric.