Copy link to clipboard
Copied
I have a form with two date fields. A start date and an end date. I need to calculate number of months but in kind of a different way. I need it to show how many calendar months and then take the remaining days and divide it by the number of days in that month. For example 01/01/19 thru 03/16/19 would be 2 months and 15 days. I would need the 15 days to divide by 31 days in March so the end result would be 2.48 months
Copy link to clipboard
Copied
I have the same question! Can anyone help?!
Copy link to clipboard
Copied
Making such calculations is not trivial. These tutorials will provide a good starting point:
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
Copy link to clipboard
Copied
If you don't have an answer to the quesiton... could you stop commenting? They asked a specific question that has a specific answer.
They are asking for a script and you keep giving them links to resources to learn how to right their own script. They didn't ask for links.
Copy link to clipboard
Copied
And scripts takes time and knowledge to make, do you want to hire me to make script for you so you don't have to read how to do it yourself?