formatDateTime function

String formatDateTime(
  1. DateTime date
)

Implementation

String formatDateTime(DateTime date) {
  return DateFormat(
    'yyyy.MM.dd a hh:mm',
  ).format(date).replaceAll('PM', '오후').replaceAll('AM', '오전');
}