Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Use this code:
var d = new Date();
d.setDate(d.getDate()-10);
f.value = util.printd("mmm/d/yyyy", d);
Find more inspiration, events, and resources on the new Adobe Community
Explore Now