Check out example codes for "retornar apenas o ano mysql date". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM SUA_TABELA where year(CAMPODATA) = 2013 and month(CAMPODATA) = 1;

Learn ReactJs, React Native from akashmittal.com