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