yyyyMM method

String yyyyMM()

Parse from DateTime to String corresponding to an Intl DateFormat.

The output will be in the format 2022/12.

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

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

Please refer to the following page for details.

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

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

Implementation

String yyyyMM() {
  return format("yyyy/MM");
}