Notes
Returns the number of months between the Date that called the method and the specified date, ignoring the difference in days.
Here are some examples:
Date firstDate = Date.newInstance(2006, 12, 2);
Date secondDate = Date.newInstance(2012, 12, 8);
Integer monthsBetween = firstDate.monthsBetween(secondDate);
System.debug(monthsBetween);
Output: 72
Video
Video does not exists.