formatMediumDate method

  1. @override
String formatMediumDate(
  1. DateTime date,
  2. MaterialLocalizations localizations
)
override

Formats the date using a medium-width format.

Abbreviates month and days of week. This appears in the header of the date picker invoked using showDatePicker.

Examples:

  • US English: Wed, Sep 27
  • Russian: ср, сент. 27

Implementation

@override
String formatMediumDate(DateTime date, MaterialLocalizations localizations) {
  return localizations.formatMediumDate(date);
}