Hi,
I am trying to do a date subtraction script in Acrobat "custom calculation script", I am not versed in Javascript, but this is what I have:
One field is Date1 and the other field is Date2 and the answer field is Period. I will enter a date in Date 1 and another date in Date2 and Period will give the period of time between the two dates in weeks.
var date1 = this.getField("Date1").value;
var date2 = this.getField("Date2").value;
function period(date1, date2)
{
var period = (date1-date2);
return period/1000/3600/168;
}
It don't seem to work, any help will be appreciated.
Thanks