Skip to content

Instantly share code, notes, and snippets.

@hamza39460
Last active August 9, 2020 20:04
Show Gist options
  • Save hamza39460/f53468d8fdd56fae6192976c0786bd0c to your computer and use it in GitHub Desktop.
Save hamza39460/f53468d8fdd56fae6192976c0786bd0c to your computer and use it in GitHub Desktop.
Event event = Event(); // Create object of event
event.summary = summaryText; //Setting summary of object
EventDateTime start = new EventDateTime(); //Setting start time
start.dateTime = startTime;
start.timeZone = "GMT+05:00";
event.start = start;
EventDateTime end = new EventDateTime(); //setting end time
end.timeZone = "GMT+05:00";
end.dateTime = endTime;
event.end = end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment