I\'m trying to generate a list of string dates in months (i.e. [\"Oct 2014\", \"Nov 2014\",... \"Jan 2015\" ]) using the code here:
var resultList = []; v
Lets do it using Moment :
moment(sd).add(1,'month').format("MMM-YY")
You can find a difference between two dates
moment("08-31-2017").diff(moment("01-31-2017"), 'months', true)