【发布时间】:2020-10-27 16:39:28
【问题描述】:
我想看看如何在便笺中自动获取日期,以便跟进,
// Add the date when you create a note
function Notes()
{
var app= SpreadsheetApp;
var activeSheet = app.getActiveSpreadsheet().getActiveSheet(); // Returns the active shee
var activeRange= activeSheet.getActiveRange() // Returns the active Range
activeRange.setNote(Date()); // Set the date in the note
}
此代码有效,但我得到此代码:Thu Oct 22 2020 08:28:09 GMT+0200(中欧夏令时间) 例如,我只想获得 22/10/2020 08:28:09。
【问题讨论】:
标签: javascript google-apps-script google-sheets