My current date format is 30-Dec-2018
. I want to add 2 month (might change) to this date format so my output will be 28-Feb-2019. I have given few tries to this but haven't succeeded.
I think my date format is causing issue in generating correct output. Any help in adding a month to the above mentioned date format in javascript. Thanks
P.S: Adding date might change the year as well
EDIT:
var date= new Date(30-Dec-2018);
var month_add = date.setMonth(date.getMonth()+2);
alert(month_add);
output I am getting in alertbox is: 1553022000000