0

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

Old Name
  • 273
  • 1
  • 3
  • 13

1 Answers1

0

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);
Old Name
  • 273
  • 1
  • 3
  • 13