Enum Class DateFormat

java.lang.Object
java.lang.Enum<DateFormat>
app.babylon.table.transform.DateFormat
All Implemented Interfaces:
Serializable, Comparable<DateFormat>, Constable

public enum DateFormat extends Enum<DateFormat>
Supported date token orderings and special date encodings.
  • Enum Constant Details

    • DMY

      public static final DateFormat DMY
      Day-month-year order.
    • YMD

      public static final DateFormat YMD
      Year-month-day order.
    • MDY

      public static final DateFormat MDY
      Month-day-year order.
    • ExcelLocalDate

      public static final DateFormat ExcelLocalDate
      Excel serial date without time.
    • ExcelLocalDateTime

      public static final DateFormat ExcelLocalDateTime
      Excel serial date/time value.
    • Unknown

      public static final DateFormat Unknown
      Unknown or ambiguous format.
  • Method Details

    • values

      public static DateFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DateFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static DateFormat parse(String s)
      Parses a named date format such as DMY, MDY, or YMD.
      Parameters:
      s - source text
      Returns:
      parsed date format or null