currentGregorianDate

The vgVar.currentGregorianDate system variable contains the current system date in eight-digit numeric Gregorian format (yyyyMMdd). EGL maintains this variable for compatibility with earlier versions. New code should use DateTimeLib.currentDate(), which returns the current system date in DATE format.

The vgVar.currentGregorianDate value is updated automatically before each reference.

You cannot use vgVar.currentGregorianDate as the target of an assignment or move statement.

vgVar.currentGregorianDate has the following characteristics:
Primitive type
NUM
Data length
8
Value saved across segments
No

Example

The following example shows the vgVar.currentGregorianDate variable:

  myDate = vgVar.currentGregorianDate;

Feedback