Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/373.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在谷歌电子表格中查询当前月份_Javascript_Google Sheets Api - Fatal编程技术网

Javascript 在谷歌电子表格中查询当前月份

Javascript 在谷歌电子表格中查询当前月份,javascript,google-sheets-api,Javascript,Google Sheets Api,非常简单的问题: 我想要一个过滤当前月份的查询,我得到了这个: =query(Sheet1!A9:F; "select sum(D) where A >= date '2016-10-01' and A < date '2016-11-01'"; 0) 但这不起作用。 :/尝试用大写字母代替“Today()”。我在这篇文章中读到,此查询语句区分大小写。尝试使用大写而不是“Today()”。我在这篇文章中读到,此查询语句区分大小写。谢谢-我使用了变通方法-我用当前日期填充了另一个单元

非常简单的问题: 我想要一个过滤当前月份的查询,我得到了这个:

=query(Sheet1!A9:F; "select sum(D) where A >= date '2016-10-01' and A < date '2016-11-01'"; 0)
但这不起作用。
:/

尝试用大写字母代替“Today()”。我在这篇文章中读到,此查询语句区分大小写。

尝试使用大写而不是“Today()”。我在这篇文章中读到,此查询语句区分大小写。

谢谢-我使用了变通方法-我用当前日期填充了另一个单元格,并从查询中调用了此单元格。谢谢-我使用了变通方法-我用当前日期填充了另一个单元格,并从查询中调用了此单元格。
(...) where A >= "'Year(Today())'-'Month(Today())'-01" (...)