SyntaxFix
Write A Post
Hire A Developer
Questions
Corrected as of 25.06.2019:
var newDate = new Date(date.setMonth(date.getMonth()+8));
Old From here:
var jan312009 = new Date(2009, 0, 31); var eightMonthsFromJan312009 = jan312009.setMonth(jan312009.getMonth()+8);