toYMD property

String get toYMD

Implementation

String get toYMD {
  if (this is DateTime) {
    return "${this!.year}-${this!.month.toString().padLeft(2, '0')}-${this!.day.toString().padLeft(2, '0')}";
  }
  return "";
}