CAML查询日期需要加 IncludeTimeValue='TRUE'
我想查一个按日期包括时间的日期段的数据查询,在创建一个CAML查询时,出现的结果总是不能精确到小时,分钟,在google上作了查询,得到结果是
<Geq> <FieldRef Name='EmailDate' /> <Value IncludeTimeValue='TRUE' Type='DateTime'>2008-11-06T01:00:00Z</Value> </Geq>
需要在Value里增加一includeTimeValue的属性
注意日期格式是UZT格式
转载于:https://www.cnblogs.com/clei_cn/archive/2008/11/07/1328531.html