0
Hi priya,
If at all you want to to retrieve data from database into your application you can do it as following:
SqlConnection con=new SqlConnection("CONNECTIONSTRING");
SqlCommand cmd=new SqlCommand("Select * From myTable Where DateColumn Between '" + fromDate + "' AND '" + toDate + "'",con);
con.Open();
SqlDataReader reader=cmd.ExecuteReader();
Now u will get all filtered record in reader object and you can use this as per your need.
Thanks.
Please Mark This answer if it is helpful to you.
0
try this
SqlDataAdapter da=new SqlDataAdapter("SELECT * FROM dateshort WHERE from_date BETWEEN '" + from + "' AND '" + to + "' ", mycon);
DataTable dt=new DataTable();
da.Fill(dt);
Now you can get all selected rows in data table.