currentFormattedJulianDate
The vgVar.currentFormattedJulianDate system variable contains the current system date in the default long Julian format. EGL maintains this variable for compatibility with earlier versions. New code can use strLib.formatDate().
The value is automatically updated each time the system variable is referenced by your program.
For COBOL programs, the system administrator for EGL runtime services sets the default format during installation.
vgj.datemask.julian.long.NLS - NLS
- The NLS (national language support) code specified in the vgj.nls.code Java™ runtime property. The code
is one of those listed for the targetNLS build
descriptor option.
For more information about vgj.nls.code, see the EGL Generation Guide.
The format specified in vgj.datemask.julian.long.NLS includes DDD (for numeric day of the year) and yyyy (for numeric year), with non-numeric characters other than D or y used as separators. The dateMask build descriptor property enables you to specify a different format for each NLS code. The NLS code must be one of those listed for the targetNLS build descriptor option.
You cannot use vgVar.currentFormattedGregorianDate as the target of an assignment or move statement.
Uppercase English (NLS code ENP) is not supported.
- Primitive type
- CHAR
- Data length
- 8
- Value saved across segments
- No
Example
The following example shows the vgVar.currentFormattedJulianDate variable:
myDate = vgVar.currentFormattedJulianDate;