dateToString function

String dateToString(
  1. DateTime date
)

converts a DateTime object to a formatted date string

Implementation

String dateToString(DateTime date) {
  var dateString = '${date.month}/${date.day}/${date.year}';

  return dateString;
}