ymd property

String get ymd

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

Example:

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

Implementation

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