Javascript

New Here ,
Aug 03, 2018 Aug 03, 2018

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

132

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2018 Aug 04, 2018

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.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Aug 04, 2018 Aug 04, 2018

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

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines