Previous Topic: DATEEXTNext Topic: DATEOFF


DATEINT

Purpose

Returns an 8-byte internal binary-date stamp as a displayable 10-byte date stamp. The returned value is in the format CCYY-MM-DD.

Syntax

►►────┬─ DATE-INTERNAL ──┬────────── (binary-date) ───────────────────────────►◄
      ├─ DATEINT ────────┤
      └─ DINT ───────────┘

Parameter

binary-date

Specifies the user-defined variable that contains an 8-byte internal binary-date stamp.

binary-date must be the name of a user-defined variable that contains an 8-byte internal binary date stamp.

Example

In the following example, the DATEINT function converts an 8-byte internal date stamp to a 10-byte displayable value. The returned value is in the format CCYY-MM-DD.

Initial value:
    DATE-STAMP-BINARY: x0165DB0000000000

Statement:
    MOVE DATEINT(DATE-STAMP-BINARY) TO DATE-FIELD

Returned string:
    '2007-08-01'