The date format in the column is not propagating to new rows, whenever new rows are being added to the bottom of the sheet. The column formatting is not automatically applied - this in regards to date, currency format, alignment etc.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Create a function that will run when the form is submitted:
Managing Triggers Manually - Google Documenation
Code.gs
function respondToFormSubmit() {
//Format entire columns
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var range = sheet.getRange("M:Y");
range.setNumberFormat('dd.mm');
};