EasyManua.ls Logo

Adobe ACROBAT FORMS JAVASCRIPT OBJECT - printd

Adobe ACROBAT FORMS JAVASCRIPT OBJECT
64 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Acrobat Forms - JavaScript Object Specification
54
printd
Parameters: cFormat, date
Returns: cResult
Use this method to format a date according to a format string. Valid string format values are as
follows:
To format the current date in long format, for example, you would use the following script:
var d = new Date();
console.println(util.printd("mmmm dd, yyyy", d));
String Effect Example
mmmm Long month September
mmm Abbreviated month Sept
mm Numeric month with leading zero 09
m Numeric month without leading zero 9
dddd Long day Wednesday
ddd Abbreviated day Wed
dd Numeric date with leading zero 03
d Numeric date without leading zero 3
yyyy Long year 1997
yy Abbreviate Year 97
HH 24 hour time with leading zero 09
H 24 hour time without leading zero 9
hh 12 hour time with leading zero 09
h 12 hour time without leading zero 9
MM minutes with leading zero 08
M minutes without leading zero 8
ss seconds with leading zero 05
s seconds without leading zero 5
tt am/pm indication am
t single digit am/pm indication a
\ use as an escape character

Table of Contents

Related product manuals