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
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.
DateFormat.DayMonthYear (for example, 04/25/00)
DateFormat.MonthDayYear (for example, 25/4/00)
DateFormat.YearMonthDay (for example, 00/04/25)
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 (