Check out example codes for "mysql query date year". It will help you in understanding the concepts better.

Code Example 1

SELECT book_name,dt_of_pub,YEAR(dt_of_pub)
FROM book_mast
WHERE YEAR(dt_of_pub)>2003;

Learn ReactJs, React Native from akashmittal.com