Future Date Script in Acrobat, 6 months after current date


hey guys have been working on hours , not sure why cannot figure out.  looking have 1 field box in form auto populate current date , field box auto populate date 6 months current date.  current date code attached, have been playing around many variations not want confuse other ugly code fragments.

 

var bfirsttime=1;
var f=this.getfield("todaysdate");

 

if (bfirsttime=1) {
f.value=util.printd("mm/dd/yyyy",new date());
bfirsttime=0;
//app.bfirsttime);
}

here's how create date object 6 months now:

 

mydate = new date();
mydate.setmonth(mydate.getmonth()+6);



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Installation database is corrupt

Error compiling for board Arduino/Genuino Uno.

Nogen der kender et simpelt hvidt template med topmenu kun - Joomla! Forum - community, help and support