i really stuck at this date. Let say today is 01 20 2021, and i want to add 14 day later to get expired date. so for the expired date should be 02 03 2021, but i only get 01 03 2021. Can anyone help me on this. Thanks
this is my code
var today = new Date();
var monthIndex = today.getMonth()+1;
var year = today.getFullYear();
var addday = new Date(new Date('1.20.2021').getTime()+(14*24*60*60*1000));
var nextDay = addday.getDate();
var nextMonth = monthIndex;
console.log('day',day)
return nextMonth+'.'+nextDay+'.'+year
//the return that I want is 2.03.2021