convertDateToString function

String convertDateToString(
  1. DateTime dateTime,
  2. String pattern
)

Implementation

String convertDateToString(DateTime dateTime, String pattern) {
  return DateFormat(pattern).format(dateTime);
}