toDateString method

String toDateString()

Implementation

String toDateString() {
  return '$year-${month.toString().padLeft(2, '0')}-${day.toString().padLeft(2, '0')}';
}