EGL Java run-time error code VGJ0216E
VGJ0216E: %1 is not a valid date mask for %2.
Explanation
The date mask defined in the properties file for use with the function is not valid.
The valid characters for a date mask are as follows:
- D, M, Y
- D for Day, M for Month, Y for Year
- Separator character
- Any nonnumeric, single-byte character except D, M, or Y.
Valid date masks can be in any of the following formats:
- Long Gregorian
The long version of the Gregorian mask must contain the following parts in any order:
- YYYY
- 4-digit year
- MM
- 2-digit numeric month
- DD
- 2-digit numeric day of month
The mask parts must be separated by any nonnumeric single-byte character except D, M, or Y.
For example, a mask of YYYY/MM/DD is used to display August 25, 1997 as 1997/08/25.
- Long Julian
The long version of the Julian mask must contain the following parts in any order:
- YYYY
- 4-digit year
- DDD
- 3-digit numeric day of year
The mask parts must be separated by any single-byte nonnumeric character except D, M, or Y.
For example, a mask of DDD-YYYY can be used to display August 25, 1997 as 237-1997.
User Response
Change the date mask property to a valid value and restart the program. If no date mask property is defined, a default date mask will be used.
The date masks can be set using the properties vgj.datemask.gregorian.long.NNN and vgj.datemask.julian.long.NNN, where NNN is the current NLS code.