I want to convert string to DateTime
in dart. I tried,
String timeVal = "Thu, 25 Mar 2021 19:29:28 GMT";
DateTime.parse(timeVal);
but getting an exception,
FormatException (FormatException: Invalid date format Thu, 25 Mar 2021 19:29:28 GMT)
How could I convert such a string value to DateTime
in dart