Avatar

Correct answer by
Level 10

Hi ra_be,

You can use the same XFA picture clauses in the util.printd method. Both util.printd() and util.scand() are part of the Acrobat JavaScript and are described in the "Acrobat JavaScript Scripting Reference".  A bit confusing because that use different picture clauses, e.g. "MM" in XFA is a zero padded month but in printd is the zero padded minutes.

Anyway try something like;

util.printd(

"date(de_DE){WW}", util.scand("d.mm.yy", DateTimeField1.formattedValue), true)

Where "date(de_DE){WW}" is the output format using the german locale and "d.mm.yy" is the Acrobat version of your XFA formatted date field.

Bruce

View solution in original post