4 Replies Latest reply on Nov 11, 2010 8:25 AM by jay fresno

    Script for current date

    jay fresno Level 1

      I have a document javascript that used to work. It prints the current date upon first opening the PDF into a field called Today. Thereafter, the date does not change no matter how many more times the PDF is opened.

       

      var f = this.getField("Today");
      if (f.value == "") f.value = util.printd("mm/dd/yyyy", new Date());

       

      I'm using Acrobat 9 Pro, and for some reason this script no longer works in version 9. If anyone can assist to correct this sript, I would greatly appreciate it.