formatDatetime function

String formatDatetime(
  1. DateTime dateTime
)

Returns a formatted string representation of the given DateTime.

Implementation

String formatDatetime(DateTime dateTime) {
  return "${dateTime.day}.${dateTime.month}.${dateTime.year} ${dateTime.hour}:${dateTime.minute}";
}