LoginSignup
1
2

More than 5 years have passed since last update.

Google Spread Sheet で日時の変換

Posted at

調べるのにかなり時間がかかってしまったので忘備録。

IFTTT を使って Google Spread Sheet へ日時を書き込んだ時に July 17, 2016 at 09:37PM となったので、これを2016-07-17 21:37 と変換したかった。

July 17, 201609:37PM も value() に渡せば数値にしてくれるので、これを text() で表示形式を指定するだけ。

=text(value(REGEXEXTRACT(A7,"^[^a]+")),"yyyy-mm-dd") & text(value((REGEXEXTRACT(A7,"[^ ]+$")))," HH:mm")
1
2
0

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
1
2