formatYearMonthDayHrMin property

String get formatYearMonthDayHrMin

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

Example: DateTime.now().formatYearMonthDayHrMin -> 2023-08-24 12:34.

Implementation

String get formatYearMonthDayHrMin => format('yyyy-MM-dd hh:mm');