Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
Chapter 9 129
Year 2000 Enhancements
New Date Intrinsics for MPE/iX
HPDATEFORMAT
You can use this routine to format the dates that can be combinations of
display formats as explained below. Many of these elements are taken
from ALLBASE/SQL date formats.
You can convert dates in the “Supported Date Formats” to a display
string of your choice (with restrictions). The HPDATEFORMAT intrinsic
will accept these format strings. The format specification strings can
have the following syntax:
Syntax
[{FormatElement}{Punctuation}]
Table 9-6 Valid Parameters for FormatElement
CC Century (01 to 99)
YYYY Year (0001 to 9999)
YY Year of century (00 to 99) with leading zeros suppressed (0 to
99)
Q Calendar quarter of the year (1 to 4)
MM Month of the year (01 to 12)
ZMM Month of the year with leading zeros suppressed (1 to 12)
DD Day of the month (01 to 31)
ZDD Day of the month with leading zero suppressed (1 to 31)
DDD Day of the year (001 to 366).
ZDDD DDD with leading zeros suppressed (1 to 366)
D Day of the week (1 to 7 where Sunday is 1, Monday is 2,…)
WW Week of the year (01 to 53)
ZWW Week of the year with leading zero suppressed (1 to 53)
Mon Month of the year in ASCII format (Jan, Feb,…)
Day Day of the week in ASCII format (Sun, Mon,…)
MON Month of the year in ASCII (uppercase) format (JAN, FEB,…)
DAY Day of the week in ASCII (uppercase) format (SUN, MON,…)