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

Add X days to a reference date in Adobe Pro 2017

Guest
Mar 22, 2018 Mar 22, 2018

Hi Community,

I've very new to Adobe Pro 2017 and Javascript. I need help creating a pdf form that auto calculates multiple dates in the future.

Here's what I'm trying to do.

> I want to enter using the "Add Date Field" the present date.

> Once the present date is added, I want the form to auto calculate a date 10 days in the future in another field.

> Using a text field or another date field (which ever is easier)

Also, I need to do this multiple times using the original date field as the reference date.

Meaning, I need a date 15 days, 20 days 35 days etc, in the future (all separate entries from the reference present date).

I'm very new, so any help is appreciated, and how I'd add the proposed javascript into the future date field.

Thank you!!

TOPICS
PDF forms
6.1K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 23, 2018 Mar 23, 2018
Translate
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 ,
Mar 23, 2018 Mar 23, 2018
Translate
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 ,
Mar 23, 2018 Mar 23, 2018
LATEST

The documentation for the Acrobat SDK has this Date Arithmetic article with examples.

One can use the JavaScript "setDate()" method to add dates.

The practicablePDF has this library of various date methods you can use.

Translate
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