defineShortDateFormat

defineShortDateFormat(showDayWithLeadingZero:   Boolean;
                      showMonthWithLeadingZero: Boolean;
                      formatOrder:              Integer;
                      dayMonthYearSeparator:    String;
                      showFullYear:             Boolean) updating;

The defineShortDateFormat method of the DateFormat class enables you to dynamically define the characteristics of a short date format. (For details about returning a string containing the receiver in the supplied date format, see the Date primitive type userFormat method.) When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file is not defined or it is set to false, inconsistent results could be returned to the application server when running in JADE thin client mode and there are regional overrides, as all overrides on the application server are suppressed.

Set the showDayWithLeadingZero and showMonthWithLeadingZero parameters to true if you want the day of the month and the month number, respectively, to be displayed with a leading zero if they are less than 10. If you do not want a leading zero displayed before the day, set this parameter to false.

If you do not set the formatOrder parameter to one of the following valid DateFormat class constant values, DateFormat.DayMonthYear is assumed.

The dayMonthYearSeparator parameter enables you to specify a string of up to five characters that is to be displayed between the day, month, and year. If the string contains any of the d, M, y, g, h, H, m, s, or t characters, these characters are removed. If the string is longer than five characters, it is truncated to five characters.

Set the showFullYear parameter to true if you want to display a full four-digit year (for example, 2001). If you want to display a two-digit year (for example, 01), set this parameter to false.

Although the Windows environment does not allow dates earlier than 1601 (Date primitive type format methods return "*invalid*"), JADE stores dates that are 1600 or earlier.