how to find according to year psql code example Example: get year from date postgres SELECT EXTRACT(YEAR FROM column_date);