datePickerMediumDate method

  1. @override
String datePickerMediumDate(
  1. DateTime date
)
override

The medium-width date format that is shown in CupertinoDatePicker spinner. Abbreviates month and days of week.

Examples:

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

Implementation

@override
String datePickerMediumDate(DateTime date) {
  return '${_shortWeekdays[date.weekday - DateTime.monday]} '
    '${_shortMonths[date.month - DateTime.january]} '
    '${date.day.toString().padRight(2)}';
}