dmy property

String get dmy

Formats the current number as a date string in 'dd-MM-yyyy' format.

Example:

print(1609459200000.dmy); // 01-01-2021

Implementation

String get dmy => DateFormats.dmy.format(toDateTime);