getFormatedDateDDMMYYYY method

String getFormatedDateDDMMYYYY(
  1. dynamic dateToFormat
)

Implementation

String getFormatedDateDDMMYYYY(dateToFormat) {
  return DateFormat("dd-MM-yyyy").format(
      DateFormat("yyyy-MM-ddThh:mm:ss").parse(dateToFormat.toString()));
}