formatDateMonthAndYear static method

String formatDateMonthAndYear(
  1. DateTime? date
)

Implementation

static String formatDateMonthAndYear(DateTime? date) {
  try {
    return DateFormat.yMMMd().format(date!).toUpperCase();
  } catch (e) {
    return '';
  }
}