sqlite的时间筛选字段

时间:2014-11-13 16:31:05   收藏:0   阅读:306

唉,需要不停的踩坑呀

commandText = commandText + string.Format("where [CollectDateTime] <‘{0}‘ and [CollectDateTime]>‘{1}‘", end.ToString("yyyy-MM-dd HH:mm:ss"), start.ToString("yyyy-MM-dd HH:mm:ss"));

时间必须转换成这种格式才可以筛选

yyyy-MM-dd HH:mm:ss

 

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!