Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DAYSTODATE

DAYSTODATE returns a nonvarying character string containing the date in the form p that corresponds to d days (in Lilian format).

Read syntax diagramSkip visual syntax diagram>>-DAYSTODATE--(-d--+-----------+-)----------------------------><
                    '-,p-+----+-'
                         '-,w-'
 
d
The number of days (in Lilian format). d must have a computational type and is converted to FIXED BINARY(31,0) if necessary.
p
One of the supported date/time patterns.

If omitted, p is assumed to be the default date/time pattern 'YYYYMMDDHHMISS999' (same as the default format returned by DATETIME).

w
An integer expression that defines a century window to be used to handle any two-digit year formats.

The allowed patterns are listed in Table 50. For an explanation of Lilian format, see Date/time built-in functions.

See DAYS for an example using DAYSTODATE.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)