Interface DateFormatter
- All Known Implementing Classes:
DateFormatterDefault
public interface DateFormatter
Date formatter builder.
-
Method Summary
Modifier and TypeMethodDescriptiondatePattern
(String customPattern) The custom pattern to use for the *date* part (without time).datePattern
(DatePattern datePattern) The pattern to use for the *date* part (without time).format()
Format!The locale to use.Which part(s) of ther date to format and output?The separator string to use between the date part and the time part.timePattern
(String customPattern) The custom pattern to use for the *time* part (without the date).timePattern
(DatePattern timePattern) The pattern to use for the *time* part (without the date).The timeZone to use.
-
Method Details
-
locale
The locale to use. Defaults to the one provided by theLocaleResolver
. -
timeZone
The timeZone to use. -
parts
Which part(s) of ther date to format and output? -
datePattern
The pattern to use for the *date* part (without time). -
datePattern
The custom pattern to use for the *date* part (without time). -
timePattern
The pattern to use for the *time* part (without the date). -
timePattern
The custom pattern to use for the *time* part (without the date). -
separator
The separator string to use between the date part and the time part. Defaults to " - ". -
format
String format()Format!
-