INTEGER-OF-DATE [ HP COBOL II/XL Quick Reference Guide ] MPE/iX 5.0 Documentation
HP COBOL II/XL Quick Reference Guide
INTEGER-OF-DATE
The INTEGER-OF-DATE function converts a date in the Gregorian calendar
from standard date form (YYYYMMDD) to integer date form. The function
type is integer.
Syntax
FUNCTION INTEGER-OF-DATE (parameter-1)
Parameters
parameter-1 Must be an integer of the form YYYYMMDD, whose
value is determined as follows:
(YYYY * 10000) + (MM * 100) + DD
where YYYY represents the year in the Gregorian
calendar and must be an integer greater than 1600.
MM represents a month and must be a positive
integer less than thirteen. DD represents a day
and must be a positive integer less than 32 ; DD
must be valid for the specified month and year
combination.
MPE/iX 5.0 Documentation