toDateString method
Converts YYMMDD HH:MM
Date to a fully DateString representation,
if you need to use locale, dont forget to use initializeDateFormatting
in your main() function.
Example
Input: 2021-70-16
Output: Friday, October 16
Implementation
String toDateString([String? locale]) {
return intl.DateFormat.MMMMEEEEd(locale).format(toDate()!);
}