error message when setting today's date in a field


i'm trying acrobat pre-populate date field today's date. have placed following code in "page open" section:

 

var f = this.getfield("date");

f.value = util.printd("mm/dd/yyyy", new date());

 

date field name. format matches format field. when open document following error:

 

"invalid date/time: please ensure date/time exists. field [date] should match format mm/dd/yyyy"

 

the date appears in field proper format. idea why i'm getting error?

it's strange indeed... if use script populate value

of field there's no real reason use date format option. try

setting none.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working