Copy link to clipboard
Copied
I have a pdf timecard that I needed to adapt to an hourly employee.
I have read lots of things on here and alot of them say to use JavaScript...I have no clue how or what that is.
I am attaching the for I have, and am hoping someone can wlak me thru step by step in how to get the IN and OUT boxes to TOTAL the hours worked. Then to get the TOTAL at the bottom to show the total hours.
ex. IN: 8:00 am OUT 2:00 pm TOTAL: 6 hours
Any help is appreciated!
Copy link to clipboard
Copied
Hi there
Hope you are doing well and thank you for reaching out.
The workflow you are trying to achieve is posible using the JavaScript. For more information about using the JavaScript please check the help page - https://acrobatusers.com/tutorials/javascript_console/
Regards
Amal
Copy link to clipboard
Copied
Working with date and time in Acrobat is not a simple task. You can start by reading 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
If you're interested, I've developed a (paid-for) tool that will allow you to set up such calculations very easily, without having to write any code. You can find it here: https://www.try67.com/tool/acrobat-calculate-time-differences-in-a-worksheet