Question

I'm trying to create an Acrobat form that automatically calculates/increments my dates. What is the javascript I need to do this?

Was it helpful?

Solution

My Solution:

var d1 = new Date(this.getField("Starting").value);
var num = d1.valueOf();
num += 1000 * 60 * 60 * 24;
var d2 = new Date(num);
event.value =util.printd("m/d/yy", d2);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top