21 Replies Latest reply on Jun 19, 2017 11:53 AM by Karl Heinz Kremer

    Future Date Script in Acrobat, 6 months after current date


      Hey guys I have been working on this for hours and I am not sure why I cannot figure this out.  I am looking to have 1 field box in the form auto populate the current date and another field box to auto populate a date 6 months from the current date.  My current date code is attached, I have been playing around with so many variations that I do not want to confuse anyone with my other ugly code fragments.


      var bFirstTime=1;
      var f=this.getField("todaysDate");


      if (bFirstTime=1) {
      f.value=util.printd("mm/dd/yyyy",new Date());