dateFormat property

String? dateFormat
getter/setter pair

Only valid if the fieldPath references a date field.

Chooses how the date field will be formatted and displayed in the UI. Possible string values are:

  • "DATE_FORMAT_UNSPECIFIED" : Default option when no format is specified, when selected, no formatting will be applied.
  • "DATE_TIME" : Renders 2018-12-14T13:00:00 as Dec 14, 1:00 PM in en_US.
  • "dateTime" : Legacy alias for DATE_TIME. Deprecated.
  • "DATE_ONLY" : Renders 2018-12-14T13:00:00 as Dec 14 in en_US.
  • "dateOnly" : Legacy alias for DATE_ONLY. Deprecated.
  • "TIME_ONLY" : Renders 2018-12-14T13:00:00 as 1:00 PM in en_US.
  • "timeOnly" : Legacy alias for TIME_ONLY. Deprecated.
  • "DATE_TIME_YEAR" : Renders 2018-12-14T13:00:00 as Dec 14, 2018, 1:00 PM in en_US.
  • "dateTimeYear" : Legacy alias for DATE_TIME_YEAR. Deprecated.
  • "DATE_YEAR" : Renders 2018-12-14T13:00:00 as Dec 14, 2018 in en_US.
  • "dateYear" : Legacy alias for DATE_YEAR. Deprecated.
  • "YEAR_MONTH" : Renders 2018-12-14T13:00:00 as 2018-12.
  • "YEAR_MONTH_DAY" : Renders 2018-12-14T13:00:00 as 2018-12-14.

Implementation

core.String? dateFormat;