Check out example codes for "mysql interval 1 day". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM FOO
WHERE MY_DATE_FIELD >= NOW() - INTERVAL 1 DAY

Learn ReactJs, React Native from akashmittal.com