Am extracting date values into data table called ‘build_dt’ and i wanted to sort the datatable date values. Below are the values fetched after screen scraping into ‘build_dt’ (excel) .
Please let me know how to sort the dates so that the old date should be placed first and the latest one should be at last.
I tried with ‘Sort Data Table’ but it is not satisfying my requirement or am doing it wrong. Let me know how can I achieve it
Thanks in advance
(From r In DT Order By DateTime.ParseExact(r.Item(“YourColumnName”).ToString, “MM/dd/yyyy”, System.Globalization.CultureInfo.InvariantCulture) Descending Select r).CopyToDataTable