DateTime error 21-undefined-2014 [duplicate]
问题 This question already has answers here : DateTime formatting 3 letter month (2 answers) Closed 4 years ago . The code below results in: 21-undefined-2014 Not sure what is missing. Please check and advise. Everything else seems to be working correctly. Thank you. function onOpen() { var ui = DocumentApp.getUi(); // Or FormApp or SpreadsheetApp. ui.createMenu('Custom Menu') .addItem('Insert Date', 'insertDate') .addToUi(); } function insertDate() { var cursor = DocumentApp.getActiveDocument()