formatYearMonthDay property

String get formatYearMonthDay

Returns a string representation of this date with the format yyyy-MM-dd.

Example: DateTime.now().formatYearMonthDay -> 2023-08-24.

Implementation

String get formatYearMonthDay => format('yyyy-MM-dd');