dt2 = ds.Tables[0].Select().Where(p => (Convert.ToDateTime(p["SignupDate"]) >= Convert.ToDateTime(txtFMinDate.Text)) && (Convert.ToDateTime(p["SignupDate"]) <= Convert.ToDateTime(txtFMaxDate.Text))).CopyToDataTable();
I want Above statement in the below format(This is not working).
DataView dataView = ds.Tables[0].DefaultView;
string where="";
where = "SignupDate >='" + Convert.ToDateTime(txtFMinDate.Text) + "'" + " AND SignupDate <='" + Convert.ToDateTime(txtFMaxDate.Text) + "'";
dataView.RowFilter = where;
DataTable dt = dataView.ToTable();
Filterds.Tables.Add(dt);
So, i want the perfect format.

Jignesh KumarRank #91 · 22.9K reputationPosted Aug 1, 2018, 11:33 PM EDT
Adhikar PatilRank #2,765 · 508 reputationPosted Aug 1, 2018, 11:53 PM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Aug 2, 2018, 9:31 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 2, 2018, 6:10 PM EDT