defineLongDateFormat(showDayWithLeadingZero: Boolean; monthFormat: Integer; formatOrder: Integer; separator1: String; separator2: String; separator3: String; showFullYear: Boolean; dayOfWeek: Integer) updating;
The defineLongDateFormat method of the DateFormat class enables you to dynamically define the characteristics of a long date format. (For details about returning a string containing the receiver in the supplied date format, see the
Set the showDayWithLeadingZero parameter to true if you want the day of the month to be displayed with a leading zero if it is less than 10. If you do not want to display a leading zero, set this parameter to false.
If you do not set the monthFormat parameter to one of the following valid DateFormat class constant values, DateFormat.MonthFullName is assumed.
DateFormat.MonthFullName (for example, March)
DateFormat.MonthShortName (for example, Mar)
DateFormat.MonthNumber (for example, 3)
DateFormat.MonthNumberLeadingZero (for example, 03)
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, 5 April 2000)
DateFormat.MonthDayYear (for example, April 5 2000)
DateFormat.YearMonthDay (for example, 2000 April 5)
When the longFormatOrder property is set to DayMonthYear (1), use the separator1, separator2, and separator3 parameters to specify a string of up to five characters that is to be displayed between the day name and the day of the month, the day of the month and the month name, and the month name and the year, respectively. If the strings contain any of the d, M, y, g, h, H, m, s, or t characters, these characters are removed. If the strings are longer than five characters, they are truncated to five characters.
When the longFormatOrder property is set to MonthDayYear (0) or YearMonthDay (2), separator1 goes between day name and the date part (or in front of date, if the format specified in the longFormat property contains no day name), separator2 goes between first two parts of the date (that is, day and month, month and day, or year and month, depending on the value of the longFormatOrder property), and separator3 goes between last two parts of the date (that is, month and year, day and year, or month and day, depending on the value of the longFormatOrder property).
Set the showFullYear parameter to true if you want to display a full four-digit year or set it to false if you want to display a two-digit year.
Use the dayOfWeek parameter to specify whether the full name of the day of the week, the short name, or no day of the week name is to be displayed. If you do not set the dayOfWeek parameter to one of the following valid DateFormat class constant values, DateFormat.FullDayOfWeek is assumed.
DateFormat.FullDayOfWeek (for example, Sunday)
DateFormat.NoDayOfWeek (suppresses the display of the day name)
DateFormat.ShortDayOfWeek (for example, Sun)
Although the Windows environment does not allow dates earlier than 1601 (