sqlite的时间筛选字段

唉,需要不停的踩坑呀

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

原文地址:https://www.cnblogs.com/chucklu/p/4095057.html