P-STAT 2.23
Revision 16
FORMAT.DATE is a
major enhancement
in processing dates
Preparations for
P-STAT 3.
P-STAT 2.23 revision 16
P-STAT Version 2.23 revision 16 is the latest version available for
PC/Windows, Linux and Solaris.
This release has a major enhancement in date processing.
FORMAT.DATE provides a template which tells P-STAT how dates should
be displayed. The input to FORMAT.DATE are the values to be
converted according to the rules of the template.
PUT ( FORMAT.DATE ( 'Sept 15 2003', ##template )) $
If ##template = 'yyyy dow month dd'
The result is:
2003 mon september 15
If ##template = 'yyyy Dow Month dd'
The result is:
2003 Mon September 15
IF ##template = 'Day.of.week, Month dd, yyyy'
The result is:
Monday, September 15, 2003
Other controls are available to handle time, AM, PM,
and differentiate noon and midnight.
The third example above illustrates how
commas, colons, dashes, etc. can be used to separate the values.
FORMAT.DATE in the help file contains complete documentation.