I am scraping invoices and need to format the dates. Dates could be in any format such as below
I have tried the below assign code and many others just cant seem to find something that will work 100%
Assign: String was not recognized as a valid DateTime.
strparsedate = DateTime.ParseExact(dataSetResults.Tables(0).Rows(0).Item("InvoiceDate".ToString).ToString, “dd/MM/yyyy”,System.Globalization.DateTimeFormatInfo.InvariantInfo)