Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I was trying to create a mandatory event in Google calendar using C#.
Mandatory event means the event will be for a specific time period (not for whole day) and it will be not "Yes", "No", "May be" option in it.

Using a whole day calendar I can remove the "Yes"/"No"/"May be" option, but need to set a specific time period, which whole day event doesn't allow.

What I have tried:

I have searched in Google, also tried with Google API helper, but no solutions found.
Posted
Updated 30-Jun-18 1:55am

1 solution

A quick search using Google: google calendar api all day event c - Google Search[^]

Found this: Events: insert  |  Calendar API  |  Google Developers[^]

The link above shows how to create an event (has an example in multiple languages) and all that you need to do is set the start and end times for the correct timezone. An all day event would start at 0:00 and end at 23:59.59.
 
Share this answer
 
Comments
Arkadeep De 2-Jul-18 15:43pm    
I am able to do this. But as per my requirement, the "Yes"/"No"/"May be" options should not be there, but will set the start & end time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900