toBirthdayBackendFormatString method

String toBirthdayBackendFormatString()

Formats this DateTime instance to a string of format dd-MM-yyyy.

This is used to store birthdays in the Firebase Auth CustomClaims.

Implementation

String toBirthdayBackendFormatString() =>
    DateFormat('dd-MM-yyyy', LocaleSettings.currentLocale.languageCode)
        .format(this);