Sélectionnez la date sans délais

var dateTime = DateTime.parse("2019-10-22 00:00:00.000");

var formate1 = "${dateTime.day}-${dateTime.month}-${dateTime.year}";

var formate2 = "${dateTime.year}-${dateTime.month}-${dateTime.day}";

print (formate1);
print (formate2);
Ilham Guenane