moopoo.net
Fishing, technology and anything else

CAML Querying using DateTime.

January 13th, 2009 by Matt

Caml queries on DateTime fields by default do not use the Time portion of the field. To overcome this use the attribute IncludeTimeValue=’TRUE’ in the value tag. For example:

<Value Type=’DateTime’ IncludeTimeValue=’TRUE’><Today /></Value>

Posted in SharePoint

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.