Hi @manish_patel,
You can use the below LINQ to filter the datatable.
(From row in dt.AsEnumerable().Where(Function(x) Datetime.ParseExact(Convert.ToString(x(1)), “MM/dd/yyyy hh:mm:ss”, System.Globalization.CultureInfo.InvariantCulture)>= Datetime.Now.AddDays(-3)) select row).CopyToDataTable
Its always better to assign Datetime.Now.AddDays(-3) to a variable and using the variable in its place.
You can modify the “AddDays” method to “AddMonths” and can play around.
I have used the “DISPATCH DATE” column but this column can also be modified if needed.
Happy coding! 