Hi,
I have a textfield on my first page in pdf named DateField.
Then i went to Advanced >> Javascript >> Document Javascripts and added the following code:
var fld = this.getField("DateField");
fld.value = util.printd("yyyy/mm/dd",new Date());
Now as far as i understand, this is supposed to print the current date.
I added it on March 02 and it displayed fine, but when i opened it the next day, it still said 02 instead of 03.
How do automatically update the date when pdf is opened.
Thank you!
Lee
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com