The INTEGER-OF-FORMATTED-DATE Function

ENTMF 

Description

The INTEGER-OF-FORMATTED-DATE function returns an integer data format representing a specified date. The type of this function is integer.

General Format

FUNCTION INTEGER-OF-FORMATTED-DATE (argument-1, argument-2)

Arguments

  1. Argument-1 must be a literal of type alphanumeric, national, or UTF-8 in a valid date or combined date time format. See Date and Time Formats for details.
  2. Argument-2 must be a data item of the same class as argument-1.
  3. The content of argument-2 should be formatted as specified by the content of argument-1:
    • If argument-1 is a valid date format, argument-2 should be a valid date in that specified format.
    • If argument-1 is a valid combined date time format, argument-2 should be a valid date time combination in that specified format.
      Note: The time portion of the argument has no effect on the function's calculation.

Returned Values

  1. The returned value is a positive integer representing the given date as the number of days since 31 December, 1600 in the Gregorian calendar.
    Note: Setting the INTDATE Compiler directive to a value other than its default value will have an effect on this calculation.