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.
The following example shows the vgVar.currentGregorianDate variable:
myDate = vgVar.currentGregorianDate;