Hi i have an array contains
List<dynamic> am = ['09:00', '09:30', '10:00', '10:30', '11:00', '11:30'];
and if they are selected
String time = '09:00'
how can I change time to the DateTime value or TimeOfDay
On
https://pub.dev/packages/date_format
See this package, By means of this package you can format your DateTime.
You can use this: