我想把当前日期下的记录过滤出来,这个该怎么写?
DateTime   dt   =   DateTime.Now; 
 string   dtStart   =   dt.ToString( "yyyy-MM-dd   00:00:00 "); 
 string   dtEnd   =   dt.ToString( "yyyy-MM-dd   23:59:59 "); 
 caseEntriesBindingSource.Filter   =    "where   PlantStartTime   >     ' "   +   dtStart   +    " '   and   PlantStartTime    <    ' "   +   dtEnd   +    " ' ";   
 这么写不对,该怎样?
------解决方案--------------------不太明白啊。。。
------解决方案--------------------  where to_Char(PlantStartTime, 'yyyy-MM-dd ') = DateTime.Now.ToString( "yyyy-MM-dd ")  
------解决方案--------------------1  caseEntriesBindingSource 是啥?   
 2  为什么有 between 不用?
------解决方案--------------------caseEntriesBindingSource.Filter =  "where datediff(day,PlantStartTime ,getdate())=0 ";