Given two dates how to return the month difference in IDE?
d1 = (d.getMonth()+1) +'/'+ (d.getFullYear());
d2 = (d.getMonth()+1) +'/'+ (d.getFullYear()+1);
Ex:
Input:
d1 = 5/2013
d2 = 7/2014
Output: (d2-d1) = 14
I tried to use javascript functions from the net but could not get any to work with IDE, tried both ways using function & storeEval.