Copy link to clipboard
Copied
try67,
Many thanks, indeed.
And how do I calculate the difference between two dates. For example:
Date of admission: 03/25/2010
Date of hoe: 02/10/2018
I want the text field to appear: xx years, xx months, and xx days
Copy link to clipboard
Copied
I've branched your question as a new thread.
This is basically age calculation. Try searching the forums, it was discussed many times.
Some good resources on the subject:
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-3
http://practicalpdf.com/the-practicalpdf-date-library-for-adobe-acrobat/