sysVar.currentShortDate

The system variable sysVar.currentShortDate contains the current system date in six-digit Gregorian format (YYMMDD). Avoid using this variable, which exists to support code migration from VisualAge Generator to EGL.

The sysVar.currentShortDate value is automatically updated each time it is referenced by the program. The returned value is numeric and contains no separator characters.

You can use sysVar.currentShortDate as the source in an assignment or move statement or as the argument in a return or exit statement.

The characteristics of sysVar.currentShortDate are as follows:

Primitive type

NUM

Data length

6

Value saved across segments

No

Example

  myDay = sysVar.currentShortDate;

Related reference
Date and time (system words)