ContentsIndexPreviousNext

INTEGER-OF-DATE Function

The INTEGER-OF-DATE function converts a date in the Gregorian calendar from standard date form (YYYYMMDD) to integer date form. The type of this function is integer.

Usage

FUNCTION INTEGER-OF-DATE (argument-1)

Parameters

Argument-1 must be an integer of the form YYYYMMDD, whose value is obtained from the calculation (YYYY * 10,000) + (MM * 100) + DD.

Returned Values

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.