yyyyMMddHHmm method

String yyyyMMddHHmm()

Parse from DateTime to String corresponding to an Intl DateFormat.

The output will be in the format 2022/12/21 10:24.

DateTimeからIntlのDateFormatに対応したStringにパースします。

2022/12/21 10:24のような形式で出力されます。

Please refer to the following page for details.

詳細は下記ページを参考にしてください。

https://api.flutter.dev/flutter/intl/DateFormat-class.html

Implementation

String yyyyMMddHHmm() {
  return format("yyyy/MM/dd HH:mm");
}