Spit MM,DD,YYYY in two fields?


good afternoon,

is there way split mm,dd,yyyy in 2 fields month spelled out (can month of year)? previous thread showed me how slice characters in 2 (for example) fields don't know how can used since value.length varies depending on number of characters in month. there light @ end scenario?

 

example: march 14, 2016

 

field1: march 14

field2: 2016

 

where number of characters in month varies.

 

thanks,

edgar a.

that done little bit of (acrobat) javascript:

 

let's assume field month , date named dat.month, , field year dat.year.

 

you somehow provide date used, , pass date object "theday"

 

in general calculation script, add following 2 lines of code:

 

this.getfield("dat.month").value = util.printd("mmmm d", theday) ;

this.getfield("dat.year").value = util.printd("yyyy", theday) ;

 

and it.

 

as said, have create proper date object.

 

hope can help.



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"