formatDateTime static method

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

Implementation

static String formatDateTime(DateTime date, {String? localeCode}) {
  return DateFormat('EEEE, dd/MMMM, HH:mm', localeCode ?? 'ca_ES').format(date);
}