monthYear static method

String monthYear(
  1. String? date
)

Implementation

static String monthYear(String? date) {
  if(date == null) return '';
  DateTime dateTime = DateTime.parse(date).toLocal();
  String formattedDate;
  formattedDate = DateFormat('MMMM yyyy').format(dateTime);
  return formattedDate;
}