I’m trying to filter the CSV data after a particular date. But filter is returning wrong number of records.
CSV file is received through an e-mail. PFA code file.
Steps I’m following are
Read CSV into data table
Apply filter on data table. (Date >= 2nd Nov 2017)
dt.Select(“Date>='”+Convert.ToDateTime(“02/11/2017”).ToShortDateString()+" “+Convert.ToDateTime(“02/11/2017”).ToShortTimeString+”'")
Try to define your CurrentCulture and then use dtInputData.AsEnumerable().Where(Function(row) Convert.ToDateTime(row(“Joining_Date”).ToString) >= Convert.ToDateTime(“02/11/2017 00:00”)).ToArray()