dateFormat property

String? dateFormat
getter/setter pair

Determines how the date part of the DateElement will be displayed in the document.

If unset, the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be formatted as MMM d, y in en_US, or locale specific equivalent. Possible string values are:

  • "DATE_FORMAT_UNSPECIFIED" : The date format is unspecified.
  • "DATE_FORMAT_CUSTOM" : Output only. The date format is imported from an external source.
  • "DATE_FORMAT_MONTH_DAY_ABBREVIATED" : The date format is an abbreviated month followed by the day. For example, "Jan 1".
  • "DATE_FORMAT_MONTH_DAY_FULL" : The date format is a month followed by the day. For example, "January 01".
  • "DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED" : The date format is an abbreviated month followed by the day and the year. For example, "Jan 1, 1970".
  • "DATE_FORMAT_ISO8601" : The date format is in ISO 8601 format. For example, "1970-01-01".

Implementation

core.String? dateFormat;