I have a string 02/12/2022 06:53:43 and i want to parse it to a datetime to perform the following check
string myDate = "02/12/2022 06:53:43";
DateTime.Parse(myDate).AddMinutes(-2) < DateTime.UtcNow)
But it gives an error : String was not recognized as a valid DateTime.
How can i parse the date ?