The system variable VGVar.currentFormattedJulianDate contains the current system date in long Julian format. The value is automatically updated each time the system variable is referenced by your program
vgj.datemask.julian.long.NLS
For additional details on vgj.nls.code, see Java runtime properties (details).
The format specified in vgj.datemask.julian.long.NLS includes DDD (for numeric day) and yyyy (for numeric year), with characters other than D, y, or digits used as separators. You can specify the format in the dateMask build descriptor option, and the default format is specific to the locale.
You can use VGVar.currentFormattedJulianDate as the source in an assignment or move statement or as the argument in a return or exit statement.
Uppercase English (NLS code ENP) is not supported.
myDate = VGVar.currentFormattedJulianDate;
Related concepts
Build descriptor part
Java runtime properties
Related tasks
Editing Java runtime properties in a build descriptor