6 Replies Latest reply on Oct 8, 2013 1:45 PM by try67

    Adding current date to text field w/ Javascript in Acrobat 8


      I am trying to add the current date to a text field using javascript in Acrobat 8 Professional. I am using the util.printd function in a javascript function but the date of creation shows in the text field, NOT today's date. Any clues??


      var f = this.getField("myField");
      if (!f.value) f.value = util.printd ("m/d/yyyy", new Date());