Get today date in google appScript

后端 未结 5 1288
旧时难觅i
旧时难觅i 2021-02-01 15:48

How do I get the Today date on google appscript?

I need to write a code to input today´s date in a cell.

function changeDate(){
  var sheet = Spreadsheet         


        
5条回答
  •  野的像风
    2021-02-01 16:13

    Google Apps Script is JavaScript, the date object is initiated with new Date() and all JavaScript methods apply, see doc here

提交回复
热议问题