I’m looking for the easiest, cleanest way to add X months to a JavaScript date.
I’d rather not handle the rolling over of the year or have to write my own function.<
d = new Date(); alert(d.getMonth()+1);
Months have a 0-based index, it should alert(4) which is 5 (may);