Check out example codes for "mysql get date diff in months". It will help you in understanding the concepts better.

Code Example 1

SELECT TIMESTAMPDIFF(MONTH, '2012-05-05', '2012-06-15')

Learn ReactJs, React Native from akashmittal.com