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.<
var a=new Date(); a.setDate(a.getDate()+5);
As above stated method, you can add month to Date function.
Date