Class DateFormatBuilder

    • Field Detail

      • DEFAULT_DATE_FORMAT

        public static final java.lang.String DEFAULT_DATE_FORMAT
        See Also:
        Constant Field Values
    • Constructor Detail

      • DateFormatBuilder

        public DateFormatBuilder()
      • DateFormatBuilder

        public DateFormatBuilder​(java.lang.String format)
    • Method Detail

      • getFormat

        public java.lang.String getFormat()
      • setFormat

        public void setFormat​(java.lang.String format)
        Set the format.
        Parameters:
        format - the dateformat, default is "yyyy-MM-dd\'T\'HH:mm:ssZ" if not specified.
      • getLanguageTag

        public java.lang.String getLanguageTag()
      • setLanguageTag

        public void setLanguageTag​(java.lang.String locale)
        Set the language tag for the Locale which is resolved via Locale.forLanguageTag(String).
        Parameters:
        locale - the locale using the IETF BCP 47 language tag string e.g. fr-FR or en-GB.
        See Also:
        Locale.forLanguageTag(String)
      • withLanguageTag

        public DateFormatBuilder withLanguageTag​(java.lang.String tag)
      • getTimezone

        public java.lang.String getTimezone()
      • setTimezone

        public void setTimezone​(java.lang.String tz)
        Set the timezone
        Parameters:
        tz - the timezone e.g. UTC or GMT.
        See Also:
        TimeZone.getTimeZone(String)