I have a string in this format:
Tuesday, Sep 01, 2020 04:15
Thursday, Aug 27, 2020 03:56
Friday, Aug 28, 2020 07:30
Tuesday, Aug 04, 2020 08:00
[Route("/test")]
public async void TestParseTime()
{
string pattern = "dddd, MMM dd, YYYY HH:MM";
string newsTimeString = "Thursday, Aug 27, 2020 03:56";
DateTime newsTime = DateTime.ParseExact(newsTimeString, pattern, null);
Console.WriteLine("newsTime = " + newsTime);
}
But the parsing of the string to datetime fails with the following exception:
How to convert it to a DateTime in C#?

MMM dinstead ofMMM ddas that will cover "Aug 27" and "Aug 1".