I have a datatable where the records have date field column with values like
11/1/2012
12/21/2012
12/22/2012
1/3/2013
1/5/2013
1/6/2013
1/7/2013
etc.
I want to filter the records and get only current month records i.e get only those rows where date is equal to current month (which will be find by DateTime.now). How can we do this with Linq and c#.
If the type of the column is already
DateTime:If you want a new DataTable from the filtered rows use
CopyToDataTable: