public interface DateFormatter
withLocale and withTimeZone methods.| Modifier and Type | Method and Description |
|---|---|
String |
format(Date date)
Format the date, provided as a java Date object.
|
String |
format(long date)
Format the date, provided as milliseconds.
|
DateFormatter |
withLocale(String localeName)
Returns a new DateFormatter that uses data for a new locale.
|
DateFormatter |
withTimeZone(TimeZone tz)
Returns a new DateFormatter that uses the new time zone.
|
String format(Date date)
date - the dateString format(long date)
date - the date in millisecondsDateFormatter withLocale(String localeName)
locale - the new locale to useDateFormatter withTimeZone(TimeZone tz)
tz - the new time zone