Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 394591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:22:13+00:00 2026-05-12T16:22:13+00:00

In a SharePoint calendar list I create two events w/ today’s date. One I

  • 0

In a SharePoint calendar list I create two events w/ today’s date. One I make an all-day event, the other I set the start time to be 12 AM and the end time to be 11:55 PM.

When I create a CAML query (in this case w/ “U2U CAML Query Builder”) I’m seeing some weird behavior. When my query 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 event that is NOT marked as an “All Day Event” is returned:

<Where>
    <Geq>
        <FieldRef Name='EventDate' />
        <Value Type='DateTime'>2009-10-05T00:00:00Z</Value>
    </Geq>
</Where>

Examining the results from the query builder 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 treat these two events identically? Could it be a time zone issue?

EDIT: More info, I think this might be a time zone issue. I discovered 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 the date is now the 4th, not 5th)

<Value Type='DateTime' IncludeTimeValue='True'>2009-10-04T20:00:00Z</Value>

Then both events are returned, but if I go up to 20:01 then I lose the all-day event. When I go to 20:01 I lose the all-day event as well. Anyone know where I can find a thorough description of this behavior?

EDIT2: I confused myself; corrected the first edit.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:22:14+00:00Added an answer on May 12, 2026 at 4:22 pm

    SharePoint stores the date/time in UTC (aka GMT or Zulu) and when displaying first converts it to the sites local time zone.

    However for All day events it stores the times (00:00 to 23:59:00) in the sites LOCAL time zone instead.

    As you’ve already figured out yourself – I believe you’ve found a bug in the way the SharePoint interprets the query and its forgetting that all day events are local time.

    I guess you could do a nasty workaround this by doing a query for

    EventDate >= SomeDate
    OR
    AllDayEvent = True AND EventDate >= SomeDate – 4hrs

    This poster has similar problems
    SO – SharePoint all day event gives obscure result

    And this will give you some more insight into how borked time zones are in SharePoint
    SharePoint Web Services and UTC time fun and games

    And if that’s not enough frustration for ya then look at Created/Modified dates via the object model and marvel at how they are reported as Local time for normal events and UTC for all day events!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following code to create an All Day Event in a SharePoint
I need to create a recurring event in SharePoint calendar. I am able to
I have SharePoint calendar control with multi day events: Calendar http://1.bp.blogspot.com/_8yYCvwdJans/RuECTJE5OmI/AAAAAAAAACc/iEqKLxyaZ9I/s1600-h/5.PNG http://1.bp.blogspot.com/_8yYCvwdJans/RuECTJE5OmI/AAAAAAAAACc/iEqKLxyaZ9I/s1600-h/5.PNG Here, the
In Sharepoint how can you copy a list item from one list to another
I have a jquery UI datepicker calendar in an event page(sharepoint page). $('#datepicker').datepicker(); I
I have a SharePoint calendar event that can have any type of file as
I want to restrict entry of new item into sharepoint calendar list with the
I have a calendar list in a SharePoint 2010 enterprise site which uses a
Is it possible to disable drag and drop event in SharePoint calendar? I looked
Here's our scenario: We've created a sharepoint 2007 calendar on our intranet site We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.