Skip to main content
neals55
Participant
June 16, 2016
Question

DATE STAMP/JAVA SCRIPT

  • June 16, 2016
  • 1 reply
  • 346 views

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?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 16, 2016

Use this code:

var d = new Date();

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

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