formatDateStr static method

String formatDateStr(
  1. String dateStr, {
  2. bool? isUtc,
  3. String? format,
})

format date by date str. dateStr 日期字符串

Implementation

static String formatDateStr(String dateStr, {bool? isUtc, String? format}) {
  return formatDate(getDateTime(dateStr, isUtc: isUtc), format: format);
}