Вопрос

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

Это было полезно?

Решение

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);
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top