withLocale and withTimeZone methods.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | Returns: the formatted timethe date in milliseconds date)Format the date, provided as milliseconds. |
| public DateFormatter | Returns: a new formatter for the given localethe new locale to use localeName)Returns a new DateFormatter that uses data for a new locale. |
| public DateFormatter | Returns: a new formatter for the given time zonethe new time zone tz)Returns a new DateFormatter that uses the new time zone. |
| format | back to summary |
|---|---|
| public String format(Date date) Format the date, provided as a java Date object. | |
| format | back to summary |
|---|---|
| public String format(long date) Format the date, provided as milliseconds.
| |
| withLocale | back to summary |
|---|---|
| public DateFormatter withLocale(String localeName) Returns a new DateFormatter that uses data for a new locale.
| |
| withTimeZone | back to summary |
|---|---|
| public DateFormatter withTimeZone(TimeZone tz) Returns a new DateFormatter that uses the new time zone.
| |