Participant
May 8, 2025
Answered
Help with Javascript to calculate 120 consecutive dates
- May 8, 2025
- 1 reply
- 590 views
Hi there,
I need help creating a JavaScript calculation that will pull in 120 consecutive dates based on the initial date. The code I am using only pulls the next date. Any assistance would be greatly appreciated!
var date = util.scand("mm/dd/yyyy", event.value);
if(event.value == "")
this.getField("Date1").value = "";
else {
date.setDate(date.getDate() +1);
this.getField("Date2").value = util.printd("mm/dd/yyyy", date);}
Thank you,
Angela
