如何写日期/时间值?

时间:2017-07-25 16:31:28

标签: node.js google-sheets-api

date/time format tokens看起来很简单。但是,如何使用它们使用spreadsheets.values.append method

将日期值写入单元格

(我在Node.js编码。)

1 个答案:

答案 0 :(得分:1)

你不能。值API仅用于编写值本身,而不是格式。如果您要编写格式,则需要使用spreadsheets.batchUpdate方法,UpdateCellsRequestRepeatCellRequestAppendCellsRequest