toDateTimeID method

String toDateTimeID()

Converts from DateTime to a String of the form 20221223102331.

Available for path parameters, etc.

DateTimeから20221223102331のような形式のStringに変換します。

パスパラメーターなどに利用可能です。

Implementation

String toDateTimeID() {
  return format("yyyyMMddHHmmss");
}