C#中winform中的datatimepicker控件作为搜索的条件

我想在datetimepicker这个控件里获取年月和数据库的字段比对,筛选数据,本来数据库的字段用的datetime,但是会出现时分秒。应该是不能匹配吧?所以我改成了varchar(10)这种形式来进行匹配搜寻,但是好像没有办法找到。我写的代码是这样的:
string str =string.format("select time(随便写个名字) from timetable where time='{0}'",datetimepicker.customformat="yyyy-mm"/convert.toint32(datetimepicker.value.tostring("yyyy-mm")) 写了这两种形式好像都不行,数据库的字段比如我赋值为2016-6这样。希望能得到帮助,谢谢

这个简单,不要精确查询,而是返回这一天时间段的数据
string str =string.format("select * from table where 日期 between {0} and {1}", datetimepicker.Value, datetimepicker.Value.AddDays(1));