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.

I want to add months to a date in JavaScript. For example: I am inserting date 06/01/2011 (format mm/dd/yyyy) and now I want to add 8 months to this date. I want the result to be 02/01/2012.