sysVar.currentFormattedJulianDate
The system variable sysVar.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
The format is in this Java run-time property:
vgj.datemask.julian.long.NLS
- NLS
- The NLS (national language support) code specified in the Java run-time property vgj.nls.code. The code is one of those listed for the targetNLS build descriptor option. Uppercase English (code ENP) is not supported.
For additional details on vgj.nls.code, see Java run-time 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 sysVar.currentFormattedJulianDate as the source in an assignment or move statement or as the argument in a return or exit statement.
The characteristics of sysVar.currentFormattedJulianDate are as follows:
- Primitive type
- CHAR
- Data length
- 8
- Value saved across segments
- No
Uppercase English (NLS code ENP) is not supported.
Example
myDate = sysVar.currentFormattedJulianDate;
Related concepts
Build descriptor part
Java run-time properties
Related tasks
Editing Java run-time properties in a build descriptor
Related reference
Date and time (system words)
Java run-time properties (details)
targetNLS