getTimeInFormat method

dynamic getTimeInFormat(
  1. DateTime time
)

takes the time of the Collection element and parses into the needed time format

exmaple: 2021-08-08T07:14:00

Implementation

getTimeInFormat(DateTime time) {
  var parts = time.toString().split(" ");
  return "${parts[0]}T${parts[1].split(".")[0]}";
}