toDateID method

String toDateID()

Converts from DateTime to a String of the form 20221223.

Available for path parameters, etc.

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

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

Implementation

String toDateID() {
  return format("yyyyMMdd");
}