How to insert tomorrow's date in pdf.
I have a pdf that when it is opened I want dates to be auto-populated for printing purposes. I've researched and can only make it partially work. The only success I've had is by editing my pdf and creating my text fields and formatting them for my date format (mm-dd-yy). Then to go to my page layout and open page properties, click on actions, and add an action that triggers on Page Open to run a javascript command. The only command I'm getting to work is the following:
var f = this.getField("Sunday");
f.value = util.printd("mm-dd-yy", new Date());
This correctly and automatically populates my date field but only for the day I do it. I'm trying to make the dates work for future dates also, such as tomorrow. It appears the main javascript function is to use a getDate() command and do +1 for tomorrow but I can not get it to do this. I've searched for different variations of adding tomorrow to the form and none of them appear to work or at least won't populate their fields upon opening my document. IF anyone can offer any help I'd appreciate it.

