Calculation successive dates from a start date
I posted this as a reply to a post that I started so I'm not sure that this question will be seen by any who did not reply to the other post. Apologies if I am not following protocol.
In the following script the value given to "var test" assures me that the values of "var priorMo" and "var priorYr" are working as intended.
var d1 is the date of the previous payment. var d2 is the next payment due date, and will always be the first day of the following month. Both of fields d1 and d2 are date-formatted as mm/dd/yyyy. No error is thrown by this script. However, var d2 receives no value from the script. Can someone please tell me how to pass the value of the new date to var d2 as I am trying to do at the last line of the if/else statements?
