getDate static method

String getDate(
  1. String date,
  2. DateFormat format
)

Implementation

static String getDate(String date, DateFormat format) {
  return DateFormat('dd/MM/yyyy').format(format.parse(date));
}