LoginSignup
4

More than 5 years have passed since last update.

「GASメモ」Utilities Service&カレンダーイベントへのリンク(URL)を取得する

Posted at

Utilities

/* 時刻の表記をyyyy-MM-ddに変更 */
Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd");

/* 時刻の表記をHH:mmに変更 */
Utilities.formatDate(new Date(), "GMT", "HH:mm");

/* 文字列をBase64でエンコードする */
Utilities.base64Encode("string");

カレンダーイベントへのリンク

  var splitEventId = event.getId().split('@');
  var calendarId = "example@gmail.com";
  var eventURL = "https://www.google.com/calendar/event?eid=" + Utilities.base64Encode(splitEventId[0] + " " + calendarId);

参考文献
Get link (url) to an calendar event in google apps script

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
4