kformatDate method

String kformatDate({
  1. DateFormat dateFormat = DateFormat.def,
  2. bool isUtc = false,
})

毫秒 format 转换格式

Implementation

String kformatDate(
    {DateFormat dateFormat = DateFormat.def, bool isUtc = false}) {
  if (this == null) return '';
  return kgetDateTime(isUtc: isUtc).kformat(dateFormat: dateFormat);
}