yyyyMMdd method

String yyyyMMdd()

Parse from DateTime to String corresponding to an Intl DateFormat.

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

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

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

Please refer to the following page for details.

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

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

Implementation

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