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

Photoshop CC 2017 - Ruler Tool - Error 8007...

How to permanently disable the right side bar in iOS 10.1.1 to keep from inadvertently opening Acrobat all the time

I am re-installing CC and the but the installer says the apps are already installed on my mac which are not.