ymd property

String ymd

Quick access to the 'yyyy-MM-dd' date format string.

Example:

print(DateTime.now().ymd); // Output: "2023-04-07"

Implementation

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