toDateString method
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);
Formats this DateTime as date only (yyyy-MM-dd)
Example:
final date = DateTime.now();
print(date.toDateString()); // "2023-12-25"
String toDateString() => format(QDateTimeUtils.dateOnly);