getMonthOnly function

String getMonthOnly(
  1. String date
)

Implementation

String getMonthOnly(String date) {
  DateTime dateTime = DateTime.parse(date);
  DateTime month = DateTime.parse(parseYearMonthDay(dateTime));
  return DateFormat('MMMM').format(month);
}