Copy link to clipboard
Copied
I need to calculate a date on a PDF form. In field "date1" I enter 12/01/13. In field "age1" I enter 7. I would like field "test1" to then display 12/08/13 automatically.
I tried the below code shared by George Kaiser but not working.....
Any help is appreciated
Copy link to clipboard
Copied
I do not see any code. Generally one needs to set the date format for the field and the code to the same pattern. One also needs to change the field names to match the form.
I would open up the JavaScript console and see if there exist any error messages.
I tend to use the full 4 digit year since there are alot of issues when using the 22 digit year. I have been aware of the 2 digit year issue since 1972.
Copy link to clipboard
Copied
Here is an article that explains date calculations:
https://acrobatusers.com/tutorials/date_time_part1
And here's some really good stuff about date and time handling
https://practicalpdf.com/the-practicalpdf-date-library-for-adobe-acrobat/