I am trying to insert event in google calendar using google api v3 and getting error during insertion.I am using c#.
Error:
Google.Apis.Requests.RequestError
Invalid or mismatching start and end times. [400]
Errors [Message[Invalid or mismatching start and end times.] Location[ - ] Reason[invalid] Domain[global]
My code for EventDateTime is here.
EventDateTime EventStartDTime = new EventDateTime();
EventStartDTime.Date = "2013-06-03";
EventStartDTime.DateTime = "2013-06-03T10:00:00.000+05:00";
EventStartDTime.TimeZone = "Asia/Karachi";
EventDateTime EventEndtDTime = new EventDateTime();
EventEndtDTime.Date = "2013-06-05";
EventEndtDTime.DateTime = "2013-06-05T10:00:00.000+05:00";
EventEndtDTime.TimeZone = "Asia/Karachi";
Can Anyone help me to solve this issue?
See Question&Answers more detail:os