Hi Chris,

After trying to reproduce your error on
http://googlecodesamples.com/oauth_playground/index.php it seems that
it works as intended:

GET 
https://www.google.com/calendar/feeds/default/private/full?start-min=2011-07-05T00:00:00&start-max=2011-07-05T23:59:59

Only returns the events for the 2011-07-05 and not for 2011-07-06.

Hope that helps.

On Sun, Jul 3, 2011 at 10:51 PM, Chris Reilly <[email protected]> wrote:
> That works fine for regular events but it is still grabbing all-day events
> for the next day.
>
> On Sun, Jul 3, 2011 at 4:48 PM, Dimitrios Zlitids <[email protected]>
> wrote:
>>
>> Στις 03/07/2011 21:35, ο/η Chris έγραψε:
>>>
>>> I am using GData .NET library and I'm trying to get ALL events for ONE
>>> day. That means all-day events, one-time events, repeating events,
>>> etc. I don't care what kind of event it is.. As long as it occurs on
>>> one particular day, I want to download it.
>>>
>>> This is my query:
>>>             EventQuery myQuery = new EventQuery(feedUrl);
>>>             myQuery.StartTime = new DateTime(DateTime.Today.Year,
>>> DateTime.Today.Month, DateTime.Today.Day, 0, 0, 0);
>>>             myQuery.EndTime = new DateTime(DateTime.Today.Year,
>>> DateTime.Today.Month, DateTime.Today.Day,23,59,59);
>>>             myQuery.SingleEvents = true;
>>>
>>> Now I assumed that this meant get all events between midnight and
>>> 11:59:59 pm.
>>> Unfortunately, It's picking up all-day events for the next day. I've
>>> tried every combination I can think of and searched everywhere but no
>>> solution.
>>>
>>> What could I be missing???
>>>
>> I'm doing it like:
>>
>> myQuery.StartTime = DateTime.Today;
>> myQuery.EndTime = DateTime.Today.AddDays(1);
>>
>> and it's working. Try it and tell me.
>>
>> --
>> 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
>
> --
> 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
>



-- 
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations

-- 
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