I tried to display the current DateTime
in a Text
after tap on button. Currently it works but I want change the format
I use
DateTime now = DateTime.now();
currentTime = new DateTime(now.year, now.month, now.day, now.hour, now.minute);
Text('$currentTime'),
the result is : YYYY-MM-JJ HH-MM:00.000
I don't know how to remove ":00.000"