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

Code Example 1

mysql> select *from DatesOfOneWeek where ArrivalTime < now() - interval 1 week;

Learn ReactJs, React Native from akashmittal.com