Created
June 9, 2020 09:11
-
-
Save amandeepmittal/84d2c773c21608ade054041eaa8a2a7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addEventToCalendar(title, startDateUTC) { | |
const eventConfig = { | |
title: eventTitle, | |
startDate: utcDateToString(startDateUTC), | |
endDate: utcDateToString(moment.utc(startDateUTC).add(1, 'hours')), | |
notes: 'Default Event Description' | |
}; | |
AddCalendarEvent.presentEventCreatingDialog(eventConfig) | |
.then(eventInfo => { | |
alert(JSON.stringify(eventInfo)); | |
}) | |
.catch(error => { | |
alert('Error ', error); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment