Skip to main content
Participant
March 4, 2024
Question

seniority calculator

  • March 4, 2024
  • 1 reply
  • 278 views
Hello

I am making a seniority calculator Briefly, I have a field for today's date and seniority date below I have 5 sets of fields with start and end, here you can enter the periods you have been a member. It is therefore meant that all 5 periods are calculated for the total number of days. I will then subtract this result from today's date field. In order to get a date stated in the field with seniority date Hope someone can help me a bit here. I am not strong in JavaScript but can read me that this is probably the way to go to make this succeed.

Thanks in advance from the Dane
This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 4, 2024

Such calculations are not trivial, but have been discussed here many times in the past. Try searching this forum (and the Acrobat one) for similar threads. You can also read these tutorials about 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-date-and-time-acrobat-javascript-part-3-3