問題タブ [formatdatetime]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
88 参照

google-apps-script - Google Script 形式日付

Utilities.formatDate() がどのように機能するのかわかりません。私はスクリプトを持っています:

これは何ヶ月も機能していますが、今日 (12 月 31 日) は問題です... A=Tue Dec 31 2019 15:24:18 GMT+0100 (CET) B="2020.12.31 15:24" これはバグですか? バグを修正するには?昨日の日付を試します:

ただし、formatDate の戻り値: "20.12.30 15:24"