Is there a simple solution to auto increment the month of the date object when days are added via getDate?
I need to add 2 days to a user supplied date, for example if the user's entered value is 2014-11-16 it returns 2014-11-18.
I have this working in the  below example, but the problem is if a user supplies a date at the end of the month, for example 2014-11-30 it will return 2014-11-32 (November only has 30 days) instead of rolling into the next month, it should be 2014-12-02.
It also does not increment to a new year as well.
 var actualDate = new Date(arrive);
        var year = actualDate.getFullYear();
        var monthy = actualDate.getMonth()+1;
        var days = actualDate.getDate()+2;
        var out = year + '-' + (monthy < 10 ? '0' : '') + monthy + '-' + days;
 
     
     
    