In the list of SharePoint calendars, I create two events with today's date. I do one of them throughout the day, and the other set a start time of 12:00, and an end time of 11:55 pm.
When I create a CAML query (in this case w / "U2U CAML Query Builder"), I see some strange behavior. When my request is a simple "OrderBy", both events are returned.
When I execute the following query that searches for events that are greater than or equal to today, only the NOT event is returned, marked as βAll Day Eventβ:
<Where> <Geq> <FieldRef Name='EventDate' /> <Value Type='DateTime'>2009-10-05T00:00:00Z</Value> </Geq> </Where>
Studying the results from the query building tool, I see that the values ββfor EventDate (the internal name of the Start Time column) are identical (2009-10-05 00:00:00).
Why does SharePoint handle these two events the same way? Could this be a time zone?
EDIT: More info, I think it could be a timezone problem. I found the "IncludeTimeValue" attribute of the Value element described here: MSDN . I am on the east coast (currently GMT - 4 hours). If I edit the Value element as follows: (note that the date is now fourth, not fifth)
<Value Type='DateTime' IncludeTimeValue='True'>2009-10-04T20:00:00Z</Value>
Then both events return, but if I get to 20:01, I will lose the event all day long. When I go at 20:01, I lose all day. Does anyone know where I can find a detailed description of this behavior?
EDIT2: I embarrassed myself; fixed first edit.
sharepoint
Chloraphil
source share