Enum DateFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DateFormat>

    public enum DateFormat
    extends java.lang.Enum<DateFormat>
    • Enum Constant Detail

      • LOCALE_BASED

        public static final DateFormat LOCALE_BASED
      • MMMM_D_YYYY

        public static final DateFormat MMMM_D_YYYY
      • MMM_D_YYYY

        public static final DateFormat MMM_D_YYYY
      • D_MMM_YYYY

        public static final DateFormat D_MMM_YYYY
      • YYYY_MM_DD_HYPHEN

        public static final DateFormat YYYY_MM_DD_HYPHEN
      • YYYY_MM_DD_DOT

        public static final DateFormat YYYY_MM_DD_DOT
      • DWWWW_MMMM_D_YYYY

        public static final DateFormat DWWWW_MMMM_D_YYYY
      • DWWW_DD_MMM_YYYY

        public static final DateFormat DWWW_DD_MMM_YYYY
      • DWWW_MM_DD_YYYY

        public static final DateFormat DWWW_MM_DD_YYYY
    • Method Detail

      • values

        public static DateFormat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DateFormat c : DateFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DateFormat valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null