Is their any way to get current day emails if the date of email is coming as Thu, 29 Jul 2021 01:13:16 -0700 ?
I have tried below method but it is giving error as “System exception at initialization: String was not recognized as a valid DateTime. at Source: mscorlib”
Query Used -
GetMails.Where(Function(x) DateTime.ParseExact(x.Headers(“Date”), “ddd, dd MMM yyyy HH:mm:ss”,Nothing).Date.Equals(DateTime.Now.Date)).ToList
Need you suggestions.