Hello

If I put in just a start date of say 19/09/2011 then I end up getting some 
events returned. But I want to get all the events for the date 15/10/2011.

This is a bit of the code:


                    EventQuery oEventQuery = new EventQuery(strURL);

                    DateTime eventDate = DateTime.Parse(strEventDate, new 
CultureInfo("en-gb", false));
                    oEventQuery.StartDate = eventDate;
                    
                    DateTime eventDateEnd;
                    eventDateEnd = eventDate;
                    eventDateEnd.AddMinutes(1439); // Takes you to 11:59:00 
pm
                    oEventQuery.EndDate = eventDateEnd;

                    EventFeed oEventFeed = m_Service.Query(oEventQuery) as 
EventFeed;
                    foreach (EventEntry oEvent in oEventFeed.Entries)
                    {
                        if (oEvent.Status.Value != 
EventEntry.EventStatus.CANCELED_VALUE)
                        {


It does not return any events. Why? If I ditch the eventDateEnd and change 
the eventDateStart to:

                oEventQuery.StartDate = new DateTime(2011,09,30,0,0,0);

it will return events, but too many.

Why can't I get it to return events for the oen date?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to