toDateString method

String toDateString()

Formats this DateTime as date only (yyyy-MM-dd)

Example:

final date = DateTime.now();
print(date.toDateString()); // "2023-12-25"

Implementation

String toDateString() => format(QDateTimeUtils.dateOnly);