getNiceSmallDateNoHour static method

String getNiceSmallDateNoHour(
  1. String date,
  2. DateFormat format, {
  3. String? localeCode,
})

Implementation

static String getNiceSmallDateNoHour(String date, DateFormat format, {String? localeCode}) {
  try {
    return DateFormat('dd MMM', localeCode ?? 'ca_ES').format(format.parseUTC(date).toLocal());
  } catch (e) {
    return '';
  }
}