monthFormat property
Allows to change the month text format in SfDateRangePicker.
The SfDateRangePicker will render the month format in the month view header with expanded month text format and the year view cells with the short month text format by default.
If it is not null
then the month view header and the year view cells
month text will be formatted based on the format given in this property.
Defaults to null.
See also:
- headerStyle, which used to customize the header view of the date range picker.
- headerHeight, which is the size of the header view in the date range picker.
- yearCellStyle, which is used to customize the year, decade and century view cells in the date range picker.
- Knowledge base: How to customize the header view
- Knowledge base: How to customize the header in the flutter multi date range picker
- Knowledge base: How to change the month format
- Knowledge base: How to style the year decade and century views
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.multiple,
showNavigationArrow: true,
monthFormat: 'EEE',
),
),
);
}
Implementation
final String? monthFormat;