formatDate static method

String formatDate(
  1. DateTime dt
)

Implementation

static String formatDate(DateTime dt) {
  return "${dt.year}-${dt.month}-${dt.day}T${dt.hour}:${dt.minute}:${dt.second}";
}