5 Replies Latest reply on Aug 30, 2013 11:50 PM by George_Johnson

    Timestamp generated by javascript turning the time to zeroes




      I'm trialing Adobe Acrobat XI for my company and am trying to create a form with a unique timestamp using this script:

      var f = this.getField("UniqueID");

      f.value = util.printd("mmddyyyyHHMMss", new Date());


      However the HHMMss part of the output keeps turning to zeroes so it will look like:



      Instead of (For example)



      The time does however appear when the box is selected but when it is deselected it goes back to 000000 as the time.


      This is an issue as these time stamps need to be unique every time as this form will be used more than once per day.


      Any suggestions on how to fix this? I'm still really new to Javascript.


      Thank you,