Check out example codes for "mysql get last 2 month data". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM d_jobs WHERE  `job_date` >= last_day(now()) + interval 1 day - interval 3 month;

Learn ReactJs, React Native from akashmittal.com