Google全日事件 函式
//日曆id
var googleCalendarID = "日曆id";
function setCalendar(title, startDate, description, color) {
startDate = new Date(startDate.replace(/-/g, "/"));//轉換日期格式
//透過ID取得日曆
var cal = CalendarApp.getCalendarById(googleCalendarID);
//沒有結束日期的全天事件
var even = cal.createAllDayEvent(title, startDate, {description:description});
//設定形成顏色
even.setColor(color);
}