備註:這是步驟分解,若不想理解過程,請直接跳過,至最後章節處理
測試
if (headItem === "預約日期") { row[index] = Utilities.formatDate(row[index], "GMT+08:00", 'yyyy-MM-dd'); }