Parsing a date from a string using DateTime.parse() in Flutter
I have a string that contains a string. I am using DateTime.parse() to parse the date but it is not working. Here is the code: DateTime eventDate = DateTime.parse(contractDateController.text); The string in the controller is this: "Mon 01-08-2024" The error…