When specifying the values for the "updatePattern" field in the adjustDateTime() function, you must use one of the following patterns:
|
Update Patterns |
Description |
|
d |
Day in month |
|
D |
Day in year |
|
E |
Day in week |
|
F |
Day in week in month |
|
h |
Hour in am/pm (0-11) |
|
H |
Hour in day (0-23) |
|
k |
Hour in day (0-23) |
|
K |
Hour in am/pm (0-11) |
|
m |
Minute in hour |
|
M |
Month in year |
|
s |
Second in minute |
|
S |
Millisecond |
|
w |
Week in year |
|
W |
Week in month |
|
y |
Year |
If you use the function,
syexts:DateTimeFunctions.adjustDateTime ( 'January 31, 2003', 'MMMM dd, yyyy', 'M', 1),
the output in your target document is
February 28, 2003.
For more information, go to java.util.Calendar [add() method] @ http://java.sun.com/j2se/1.4.1/docs/api/java/util/Calendar.html.