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
Use setMonth() instead of setDate() to sets the month of the date variable.
setMonth()
setDate()
date.setMonth(date.getMonth() + 1);