Javascript function to add X months to a date - Stack Overflow
This function handles edge cases and is fast: function addMonthsUTC (date, count) { if (date && count) { var m, d = date.getUTCDate() date.setUTCMonth(date.getUTCMonth() + count, 1) m = date.getUTCMonth() date.setUTCDate(d) if (date ......