Acrobat Pro DC - Date fill and calculation
Using Adobe Acrobat Pro DC...
I have created a PDF Form which includes a field for the current date, "Today". It seems to work. I used the following in the "Custom Calculation Script" section
var f = this.getField("Today");
if (f.value == "") f.value = util.printd("mm/dd/yyyy", new Date());
I have a fillable field for a project beginning date "OnAssignment".
Assuming both those fields (Today and OnAssignment) are populated... I want a third field, "Duration" to then calculate and display the current duration - the difference between "Today" and "OnAssignment", and have no idea how to do that. The obvious secondary question would be how best to format the result in the "Duration" field. I am hoping for... (example)... 2.3 Years
Any assistance, guidance, reference, resource, and/or education would be greatly appreciated.
