Javascript
Copy link to clipboard
Copied
This is the first time I'm using this site and Adobe acrobat Pro as well. I have two pages of Timesheets. Each Page is seven days calendar dates. I want enter first date of a calendar week then I would like the rest of both weeks to populate automatically for total of 14 days calendar week. If anyone could assist me please, I would appreciate. I am using adobe acrobat Pro. Thank you
Copy link to clipboard
Copied
This is not a beginners project, Not only will be computing the dates be confusing so will be the computation of elapsed time. All of the date and time values are stirring values and will need to be converted to a numeric value. All of this will require using custom JavaScript calculations and require knowledge of the field names and formats to start with.
This question has been asked many times and answered, so you can use the search function to find examples.
When one uses the JavaScript date object in these calculations, any time adjustment for Daylight Savings Time or Summer Time will automatically be applied as needed dependent upon the date.
Copy link to clipboard
Copied
As mentioned, this is not a very simple task if you don't have any experience with Acrobat JavaScript.
Some good tutorials on this subject can be found here:
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-with-date-and-time-in-acrobat-javascript-part-3
http://practicalpdf.com/the-practicalpdf-date-library-for-adobe-acrobat/
If you're interested, I've developed a (paid-for) tool that allows you to apply such calculations very easily.
You can find it here: Custom-made Adobe Scripts: Acrobat -- Apply Automatic Date Calculation

