sysVar.currentDate

The system variable sysVar.currentDate contains the current system date in eight-digit Gregorian format (YYYYMMDD).

The sysVar.currentDate value is updated automatically before each reference. The value is numeric and contains no separator characters.

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

The characteristics of sysVar.currentDate are as follows:

Primitive type

DATE

Data length

8

Value saved across segments

No

Example

  myDate = sysVar.currentDate

Related reference
Date and time (system words)