using a forEach loop to build html table and date/time comes through as null

前端 未结 1 676
清酒与你
清酒与你 2020-12-12 06:43

I am using Google Apps Script and Javascript to build a WebApp. Using a forEach loop to pull data from the GoogleSheet to build the HTML table I have a date time field as th

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 07:12

    Date objects are illegal as parameters between server and client. Convert them to strings using JSON.stringify() or use getDisplayValues() instead of getValues()

    0 讨论(0)
提交回复
热议问题