MPE/iX Intrinsics Reference Manual (32650-90875)
Chapter 7 335
Command Definitions (HP32208-HPLOACNMPROC)
HPDATEFORMAT
HPDATEFORMAT
NM callable only.
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 specifcation strings can have the following
syntax:
Syntax
[{Format Element}{Punctuation}]
Parameters
Valid Parameters for
Format Element
Table 7-9. Format Specification Strings
String Definition
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, . . . )