DateFormatStyle enum

Formatting styles for localized date presentations.

Used with formatDate and BloomDateTimeClientI18n.toLocalizedDate to select standard formatting presets.

final date = DateTime(2026, 8, 23);
formatDate(date, style: DateFormatStyle.medium, locale: 'en-US'); // "Aug 23, 2026"

See also:

  • formatDate, which formats dates according to these styles.
  • formatDateTime, which combines date styles with localized time strings.
Inheritance
Available extensions

Values

short → const DateFormatStyle

Short compact date representation (e.g. "8/23/2026", "23/08/2026", "23.08.2026").

medium → const DateFormatStyle

Medium abbreviated date representation (e.g. "Aug 23, 2026", "23 août 2026", "23. Aug. 2026").

long → const DateFormatStyle

Long full-month date representation (e.g. "August 23, 2026", "23 août 2026", "23. August 2026").

full → const DateFormatStyle

Complete full date including weekday name (e.g. "Sunday, August 23, 2026").

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<DateFormatStyle>
A constant List of the values in this enum, in order of their declaration.