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

Code Example 1

SELECT *
FROM players
WHERE DATE(us_reg_date) BETWEEN '2000-07-05' AND '2011-11-10'

Learn ReactJs, React Native from akashmittal.com