string to datetime dart code example
Example 1: dart convert string to datetime
var dateTime = DateTime.parse("dateTimeString");
Example 2: convert iso date string into date and time string flutter
DateTime.parse('11/10/2018 11:30:44')
var dateTime = DateTime.parse("dateTimeString");
DateTime.parse('11/10/2018 11:30:44')