• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

298

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.

Votes

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
Community Expert ,
Aug 04, 2018 Aug 04, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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