Hello, first I hope I am posting this thread in the appropriate place.
We have a time sheet that has a field for a starting date. Then starting with the entered date there are 14 fields that represent each working day within the two week cycle. I need a script that will take the date entered (Field name is text) and add 1 additional day up to 14 days. All I have come up with is:
var d1 = new Date();
var num = d1.valueOf();
num += 1000 * 60 * 60 * 24 * 0;
var d2 = new Date(num);
event.value =util.printd("mm/dd", d2);
This grabs the current date and adds to it (Last digit on the num line) in this case it is the first day and adds nothing. I just need it to work off the entered date field (text). Please help! I have worked weeks on this and am not getting anywhere.