Copy link to clipboard
Copied
Is it possible to add a user entered duration to an entered time.
For Example
A field "starttime" entered by a user
A field "enroute" entered by a user
starttime + enroute = newtime
starttime is a time in 24hr format
enroute is a duration, 1h 15m for example, which is variable entered by the user up to 8 hours
So if starttime is 16:24 and enroute is 1:15, newtime would be 17:39
Copy link to clipboard
Copied
Yes, this is possible. You can create a script for this.
Copy link to clipboard
Copied
Working with date and time in Acrobat JavaScript is not trivial. See these tutorials:
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-date-and-time-acrobat-javascript-part-3-3