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.<
Simple solution: 2678400000 is 31 day in milliseconds
2678400000
var oneMonthFromNow = new Date((+new Date) + 2678400000);
Update:
Use this data to build our own function:
2592000000
2505600000
2419200000