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

Code Example 1

select extract(year from your_column) from your_table;

Learn ReactJs, React Native from akashmittal.com