boban.s
There is no simple way of achieve the required filter of records. By the way, Select Method internaly loops all records and apply expression to every record and if pass adds to DataRow array as a result. You can loop all records and check every row's DateColumn and if date's month is 6 then add to DataRow array as a result. Here is some code:
DataSet1 ds = new DataSet1();
DataSet1.DataTable1Row row = ds.DataTable1.NewDataTable1Row();
row.FirstName = "Boban";
row.LastName = "Stojanovski";
row.Address = "ul:500 br:98a";
row.Date = DateTime.Today;
ds.DataTable1.Rows.Add(row);
row = ds.DataTable1.NewDataTable1Row();
row.FirstName = "Petre";
row.LastName = "Petrevski";
row.Address = "ul:500 br:98a";
row.Date = DateTime.Today.AddMonths(-3);
ds.DataTable1.Rows.Add(row);
List<DataRow> rows = new List<DataRow>();
foreach (DataSet1.DataTable1Row tableRow in ds.DataTable1.Rows)
{
if (tableRow.Date.Month == 6)
rows.Add(tableRow);
}
//here rows will contain one row which is with month = 6
Where DataSet1 is typed dataset which have one table named DataTable1. Table contains four columns where Date is of DateTime type.