ILE COBOL Language Reference


INTEGER-OF-DAY

The INTEGER-OF-DAY function converts a date in the Gregorian calendar from Julian date form (YYYYDDD) to integer date form.

The function type is integer.

The function result is a seven-digit integer.

Format
 
>>-FUNCTION INTEGER-OF-DAY--(--argument-1--)-------------------><
 
 
argument-1
Must be an integer of the form YYYYDDD whose value is obtained from the calculation (YYYY * 1000) + DDD.

The returned value is an integer that is the number of days the date represented by argument-1 succeeds December 31, 1600 in the Gregorian calendar.

Related Information


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]