Interface DateFormatter

All Known Implementing Classes:
DateFormatterDefault

public interface DateFormatter
Date formatter builder.
  • Method Details

    • locale

      DateFormatter locale(Locale locale)
      The locale to use. Defaults to the one provided by the LocaleResolver.
    • timeZone

      DateFormatter timeZone(TimeZone timeZone)
      The timeZone to use.
    • parts

      DateFormatter parts(DateParts dateParts)
      Which part(s) of ther date to format and output?
    • datePattern

      DateFormatter datePattern(DatePattern datePattern)
      The pattern to use for the *date* part (without time).
    • datePattern

      DateFormatter datePattern(String customPattern)
      The custom pattern to use for the *date* part (without time).
    • timePattern

      DateFormatter timePattern(DatePattern timePattern)
      The pattern to use for the *time* part (without the date).
    • timePattern

      DateFormatter timePattern(String customPattern)
      The custom pattern to use for the *time* part (without the date).
    • separator

      DateFormatter separator(String separator)
      The separator string to use between the date part and the time part. Defaults to " - ".
    • format

      String format()
      Format!