formatDayDateMonthAndYear static method
Formats a nullable DateTime into 'EEE, MMM d, y' format and converts to uppercase. Returns an empty string if the date is null or on error.
Implementation
static String formatDayDateMonthAndYear(DateTime? date) {
try {
return DateFormat.yMMMEd().format(date!).toUpperCase();
} catch (e) {
return '';
}
}