Check out example codes for "mysql extract month from date". It will help you in understanding the concepts better.

Code Example 1

SELECT EXTRACT(MONTH FROM '2020-07-05')

Code Example 2

SELECT MONTH(field_name) as month FROM yourtable

Learn ReactJs, React Native from akashmittal.com