toFrontendDateFormatString method

String toFrontendDateFormatString()

Formats this DateTime instance to a string of format d MMMM yyyy.

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

This is used to show a date only, with the year included, e.g. for a user's birthday.

Implementation

String toFrontendDateFormatString() =>
    DateFormat('d MMMM yyyy', LocaleSettings.currentLocale.languageCode)
        .format(this);