The system variable VGVar.currentGregorianDate contains the current system date in eight-digit Gregorian format (yyyyMMdd).
The VGVar.currentGregorianDate value is updated automatically before each reference. The value is numeric and contains no separator characters.
You can use VGVar.currentGregorianDate as the source in an assignment or move statement or as the argument in a return or exit statement.
myDate = VGVar.currentGregorianDate
Related reference
EGL library DateTimeLib
System variables outside of EGL libraries