getDateFormat method

String getDateFormat(
  1. String pattern,
  2. DateTime date
)

Implementation

String getDateFormat(String pattern, DateTime date) {
  var formatter = DateFormat(pattern);
  return formatter.format(date);
}