i am using this code
SqlDataAdapter da = new SqlDataAdapter("Select * from addcustomer Where date=>" + dateTimePicker1.Value + "AND date=<" + dateTimePicker2.Value + " ", my);
da.Fill(dt);
dataGridView1.DataSource = dt.DefaultView;
getting error
Incorrect syntax near '>'.
whats wrong
Date n time picker
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Arpit JainRank #231 · 10.7K reputationPosted Aug 25, 2013, 7:21 AM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 25, 2013, 7:28 AM EDT
SqlDataAdapter da = new SqlDataAdapter("Select * from addcustomer Where date <= '" + dateTimePicker1.Value + "' AND date <= '" + dateTimePicker2.Value + "'", my);