toFrontendDateTimeFormatString method

String toFrontendDateTimeFormatString()

Formats this DateTime instance to a string of format d MMMM yyyy HH:mm

E.g.: 7 augustus 9:30 (Dutch locale) or 7 August 9:30 (English locale).

This is used to show date and time, without the year, e.g. for an event's start date and time.

Implementation

String toFrontendDateTimeFormatString() =>
    DateFormat('d MMMM HH:mm', LocaleSettings.currentLocale.languageCode)
        .format(this);