I have to delete rows from Date column compare today date if older than one month date then delete rows from sheet
Input :
anyone
Thanks
shaik
I have to delete rows from Date column compare today date if older than one month date then delete rows from sheet
Input :
anyone
Thanks
shaik
Use this LINQ
YourDataTable = YourDataTable.AsEnumerable() _
.Where(Function(row) Not IsDate(row("Date")) OrElse CDate(row("Date")) >= DateTime.Now.AddMonths(-1)) _
CopyToDataTable()
@ashokkarale your LINQ Quary working fine but I have to delete unwanted rows (more than one month) from sheet
please help
thanks
shaik
You can write this filtered data into a new Sheet and just delete the existing or original one.