I have a column which has multiple dates & I want to pick up the latest date results , I am using the below query but it is not giving me the correct result:
DT.AsEnumerable().Where(Function(r) r(“Process Date (latest image)”).ToString = ([DT].AsEnumerable().Max(Function (drRows) drRows(“Process Date (latest image)”).ToString))).CopyToDataTable
Please find below the sample data:
Process Date (latest image)
09/11/2020
09/11/2020
09/11/2020
05/03/2021
05/03/2021