The system variable VGVar.currentJulianDate contains the current system date in seven-digit Julian format (yyyyDDD). Avoid using this variable, which exists to support code migration from VisualAge® Generator to EGL.
The value is numeric, contains no separator characters, and is updated automatically before each reference.
You can use VGVar.currentJulianDate as the source in an assignment or move statement or as the argument in a return or exit statement.
myDay = VGVar.currentJulianDate;
Related reference
EGL library DateTimeLib
System variables outside of EGL libraries