getDate method

String getDate()

Implementation

String getDate() {
  final fMonth = month < 10 ? "0$month" : "$month";
  final fDay = day < 10 ? "0$day" : "$day";
  return "$year-$fMonth-$fDay";
}