Thursday, September 16, 2010

dt.Select(Date Filter)

string filter = "[Date] >= '" + Convert.ToDateTime(txtTo.Text).ToShortDateString() + "' AND [Date] <= '" + Convert.ToDateTime(txtFrom.Text).ToShortDateString() + "'";

DataRow[] dto = notDownloaded.Select(filter);
//DataRow[] dto = notDownloaded;

No comments:

Post a Comment