getNiceDateMinus10 static method

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

Implementation

static String getNiceDateMinus10(String date, DateFormat format, {String? localeCode}) {
  try {
    return '${DateFormat('EE, dd/MM/yy, HH:mm', localeCode ?? 'ca_ES').format(format.parseUTC(date).toLocal())}h';
  } catch (e) {
    return '';
  }
}