Annotation Interface DateTimeFormat


@Target(FIELD) @Retention(RUNTIME) @Inherited public @interface DateTimeFormat
Convert date format.

write: It can be used on classes Date

read: It can be used on classes String

  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    True if date uses 1904 windowing, or false if using 1900 date windowing.
    Specific format reference SimpleDateFormat
  • 元素详细资料

    • value

      String value
      Specific format reference SimpleDateFormat
      返回:
      Format pattern
      默认值:
      ""
    • use1904windowing

      boolean use1904windowing
      True if date uses 1904 windowing, or false if using 1900 date windowing.
      返回:
      True if date uses 1904 windowing, or false if using 1900 date windowing.
      默认值:
      false