Check out example codes for "select row from mysql where date more than 30 days". It will help you in understanding the concepts better.

Code Example 1

mysql> delete from DemoTable where UserMessageSentDate < now() - interval 30 DAY;
Query OK, 3 rows affected (0.11 sec)

Learn ReactJs, React Native from akashmittal.com