Returns an appropriate DateFormat based on the time object parts, an style and a locale required. This DateFormat obtained can be used to format another Time object using the format method. For example, in the following FBL:
| formatter as DateFormat formatter = d1.getDateFormat(parts : Time.DATE_TIME, style : Time.FULL, locale : Java.Util.Locale.FRANCE) |
a formatter is obtained localized to France, that includes both the "date" and "time" parts of the Time object and that has the FULL style. If this formatter is applied to the same "d1" Time object it would be format as follows: Value formatted to default US locale: Mar 30, 2005 2:22:02 PM (d1.format(dateStyle: Time.DEFAULT, timeStyle : Time.DEFAULT)) Value formatted using the obtained "formatter": mercredi 30 mars 2005 14 h 22 GMt-03:00 Possible Time parts to get the format: DATE_ONLY, TIME_ONLY, DATE_TIME Possible styles : SHORT, DEFAULT, LONG, FULL
| Name | Type | Description | Mode |
|---|---|---|---|
| parts | Int | : Time object parts to include in the formatter to obtain | in |
| style | Int | : Style to apply to the formatter | in |
| locale | Java.Util.Locale | : the locale used | in |