If Condition: String was not recognized as a valid DateTime

Hi

Try to mention like this

Datetime.ParaeExact(item.Headers(“Date”).ToString.Trim, “ddd, dd MMM yyyy HH:mm:ss zzz”, System.Globalisation.CultureInfo.InvariantCulture).ToShortDateString

For more info

Hope this helps
Cheers @Zorina25