format method
https://api.flutter.dev/flutter/intl/DateFormat-class.html
DateTime.now().format(); // 2022-11-05
Implementation
String format([String format = 'yyyy-MM-dd']) {
return DateFormat(format).format(this);
}
https://api.flutter.dev/flutter/intl/DateFormat-class.html
DateTime.now().format(); // 2022-11-05
String format([String format = 'yyyy-MM-dd']) {
return DateFormat(format).format(this);
}