dateStringFormatter function

String dateStringFormatter(
  1. DateTime date
)

function to formate the date

Implementation

String dateStringFormatter(DateTime date) {
  var format = DateFormat.yMd();
  var dateString = format.format(date);
  return dateString;
}