formatDayMonthYear property

String get formatDayMonthYear

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

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

Implementation

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