Check out example codes for "date less than in sql". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM wp_osd_properties WHERE `listing_expiration` < '2020-08-05'

Learn ReactJs, React Native from akashmittal.com