Check out example codes for "get year from date postgres". It will help you in understanding the concepts better.

Code Example 1

SELECT EXTRACT(YEAR FROM column_date);

Code Example 2

select extract(year from your_column) from your_table;

Learn ReactJs, React Native from akashmittal.com