formatDate method

String formatDate(
  1. DateTime dateTime
)

Implementation

String formatDate(DateTime dateTime) {
    final formatter = DateFormat('MMMM. dd, y | hh:mma');
    return formatter.format(dateTime);
}