Sort Data Table not working

Hi @hp321 ,
Please try the following LINQ to sort your data.

DT.AsEnumerable.OrderBy(Function(r) dateTime.ParseExact(r(“DateColumn”).ToString, “M/dd/yyyy hh:mm:ss tt”, System.Globalization.CultureInfo.InvariantCulture)).CopyToDataTable

If you are doing a copy/paste of the code, please ensure your remove and rewrite all the quotes "
Please let us know if it works.

Thanks,
Anjani