Im using the Class DateBox with Google Apps Script. The output format looks like this:
Fri Mar 07 2014 00:00:00 GMT+0100 (CET)
I would like this date to get in to the Google Calender. But the Google Calender date format looks like this:
March 8, 2014 16:00:00 UTC
Is there any way to solve this?
The DateBox:
grid.setWidget(2, 0, app.createLabel('Tidpunkt:'));
grid.setWidget(2, 1, app.createDateBox().setName('tid').setId('tid'));
The Google Calendar input:
var date = e.parameter.tid;
var lol = e.parameter.name;
var lolz = e.parameter.info;
var event = CalendarApp.getCalendarById('[email protected]').createEvent(lol, date);
{description: lolz});