formatDate static method

String formatDate(
  1. DateTime date, {
  2. String? localeCode,
})

Implementation

static String formatDate(DateTime date, {String? localeCode}) {
  return DateFormat('EEE, dd MMM', localeCode ?? 'ca_ES').format(date);
}