Skip to main content
Participant
Mar 4, 2024 5:56 AM UTC
Question

seniority calculator

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

try67
Community Expert
Community Expert
Mar 4, 2024 10:14 AM UTC

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

Translate