SELECT * FROM myTable WHERE mySearchDate BETWEEN '1990-01-01' AND '2012-01-01'
select * from table where startdate >='"+dateTimePicker1.Value.ToString("yyyy-MM-dd")+"'and enddate <='"+dateTimePicker2.Value.ToString("yyyy-MM-dd")+"'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)