toDateString method

String toDateString()

Implementation

String toDateString() {
  return DateFormat('yyyy-MM-dd').format(this);
}