formatDateTime static method

String formatDateTime(
  1. DateTime dateTime, {
  2. String dateTimePattern = _DATE_TIME_PATTERN,
})

Formats DateTime

Implementation

static String formatDateTime(DateTime dateTime,
    {String dateTimePattern = _DATE_TIME_PATTERN}) {
  return DateFormat(dateTimePattern).format(dateTime);
}