LoginSignup
73
57

More than 5 years have passed since last update.

GoogleAppsScriptで日付をフォーマットする

Last updated at Posted at 2014-03-13

GoogleスプレッドシートでVBA的な役割を果たす"GoogleAppsScript"は
javascriptであるため、日付のフォーマットをするのにも一手間かかってしまう。
一手間かかる例→ http://stackoverflow.com/questions/1056728/formatting-a-date-in-javascript

そんな時のために、Google先生が便利なライブラリを用意してくれている。

var d = new Date();
print Utilities.formatDate( d, 'Asia/Tokyo', 'yyyy年M月d日');

73
57
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
73
57