Στις 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
