scottvonduhn
08/03/2021, 2:20 PMvar newDueDate = d.setDate(d.getDate() + addtlDays);
could be the issue. Date.setDate
does not return a new Date, it modifies the Date object it is called on.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate for reference.Slig
08/03/2021, 7:35 PMSlig
08/03/2021, 7:38 PMscottvonduhn
08/03/2021, 8:08 PMscottvonduhn
08/03/2021, 8:10 PMscottvonduhn
08/03/2021, 8:21 PMmichoel
08/03/2021, 11:55 PMIf the dayValue is outside of the range of date values for the month, setDate() will update the Date object accordingly.
scottvonduhn
08/04/2021, 12:12 AMSlig
08/04/2021, 1:44 PMSlig
08/04/2021, 1:51 PMscottvonduhn
08/04/2021, 2:18 PMSlig
08/04/2021, 2:35 PM