Copy link to clipboard
Copied
Hi
I am having a pdf form that includes three cells:
start Time
end Time
Duration
The user will enter the start time and end time in HH:MM and the file will calculate the duration In HH:MM
I want your help in building a JavaScript code because I need the file but my skills are basic in JavaScrip. Name of the cells are same as mentioned on the top.
Thanks in advance.
Copy link to clipboard
Copied
You can start by reading these articles on the Date object, which is what you'll need for calculating duration.
https://acrobatusers.com/tutorials/date_time_part1
https://acrobatusers.com/tutorials/date_time_part2
The example in the second article shows how to calculate the time between two times.