The Value element allows you to set the time format for dates using a time pattern string. The format date string conforms to the Java language's SimpleDateFormat definition.
If you do not set the format attribute, the date is formatted according to the system configuration property com.plumtree.content.template.defaultDatePublishFormat. The default format is MM/dd/yyyy hh:mm aa.
Excerpt from the Java Developer's Kit, version 1.2.2:
Specify the time format using a time pattern string. In this pattern, all ASCII letters are reserved as pattern letters, which are defined as the following:
Symbol |
Meaning |
Presentation |
Example |
G |
era designator |
text |
AD |
y |
year |
number |
1970; 70 |
M |
month in year |
text or number |
June; Jun; 06 |
w |
week in year |
number |
41 |
W |
week in month |
number |
2 |
D |
day in year |
number |
73 |
d |
day in month |
number |
15 |
F |
day of week in month |
number |
2 |
E |
day in week |
text |
Tuesday; Tue |
k |
hour in day (1-24) |
number |
21 |
H |
hour in day (0-23) |
number |
21 |
h |
hour in am/pm (1-12) |
number |
11 |
K |
hour in am/pm (0-11) |
number |
10 |
a |
am/pm marker |
text |
PM |
m |
minute in hour |
number |
43 |
s |
second in minute |
number |
51 |
S |
millisecond in second |
number |
978 |
z |
time zone |
general time zone |
Pacific Standard Time ; PST ; GMT-08:00 |
Z |
time zone |
RFC 822 time zone |
-0800 |
For more details, see the Sun site (java.sun.com).