I have to get google calendar events with following filters in c# using google-calendar-event api.
- "calendarId"
- "timezone"
- "timeMin"/"timMax" [Eg : 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z]
Timezone is computed dynamically. On the basis of timezone (eg : "Europe/Zurich"), I need to provide timezone offset for "timeMin"/"timMax". How to create datetime object with above mentioned format for "timeMin"/"timMax" request parameters?
Unable to create above "timeMin"/"timeMax" datetime object with timezone retrieved from google calendar. I found TimezonesInfo class in .net accepts timezones with different id as compared to those used in google calendar. So, may be we need to retrieve timezone offset info as well from google only.