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

DATE STAMP/JAVA SCRIPT

New Here ,
Jun 16, 2016 Jun 16, 2016

I have very basic knowledge of adobe and java script in particular. I need a java script for today's date (f.value = util.printd("mmm/d/yyyy", new Date) minus 10 days. Meaning, I need a "date stamp field" to be pre-dated by ten days. Any suggestions?

TOPICS
Acrobat SDK and JavaScript , Windows
321
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 ,
Jun 16, 2016 Jun 16, 2016
LATEST

Use this code:

var d = new Date();

d.setDate(d.getDate()-10);

f.value = util.printd("mmm/d/yyyy", d);

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