I am using google calendar api to create events on the calendar. I am following google's api document here https://developers.google.com/calendar/create-events#javascript.
var event = {
'summary': 'Google I/O 2015',
'location': '800 Howard St., San Francisco, CA 94103',
'description': 'A chance to hear more about Google\'s developer products.',
'start': {
'dateTime': '2015-05-28T09:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'end': {
'dateTime': '2015-05-28T17:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'attendees': [
{'email': '[email protected]'},
{'email': '[email protected]'}
],
};
My backed service is currently returning me the event start date and the time in this format 2020-06-10T10:00:00.000
and the duration in a string '01:30:00'
. It also returning me the time zone America/Los_Angeles
. How may I set my start datetime and end datetime using these values.