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:
String
mmmm
mmm
mm
m
dddd
ddd
dd
d
yyyy
yy
HH
H
hh
h
MM
M
ss
s
tt
t
\
Effect
Long month
Abbreviated month
Numeric month with leading zero
Numeric month without leading zero
Long day
Abbreviated day
Numeric date with leading zero
Numeric date without leading zero
Long year
Abbreviate Year
24 hour time with leading zero
24 hour time without leading zero
12 hour time with leading zero
12 hour time without leading zero
minutes with leading zero
minutes without leading zero
seconds with leading zero
seconds without leading zero
am/pm indication
single digit am/pm indication
use as an escape character
Example
September
Sept
09
9
Wednesday
Wed
03
3
1997
97
09
9
09
9
08
8
05
5
am
a
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));
Acrobat Forms - JavaScript Object Specification
54
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.