To create an event in GAS, follow this link: https://developers.google.com/apps-script/reference/calendar/calendar#createEvent(String,Date,Date,Object)
var event = CalendarApp.getDefaultCalendar().createEvent('Apollo 11 Landing',
new Date('July 20, 1969 20:00:00 UTC'),
new Date('July 20, 1969 21:00:00 UTC'),
{location: 'The Moon'});
Logger.log('Event ID: ' + event.getId());
The input date format is (E, dd MMM yyyy HH:mm:ss Z) ..
When the output is separate date and time, like:
var bookTime, bookDate; // bookDate = 2014-11-26 and bookTime = 09
var startDateTime = bookDate + " " + bookTime+ ":00:00"; //startDateTime = 2014-11-26 09:00:00
If you have this time format, how can you use it to create an event?
Looking for any suggestions.