Check out example codes for "mysql last 6 months". It will help you in understanding the concepts better.

Code Example 1

.... where yourdate_column > DATE_SUB(now(), INTERVAL 6 MONTH)

Learn ReactJs, React Native from akashmittal.com