getFromDateToDateForEvent method

String getFromDateToDateForEvent({
  1. required String fromDate,
  2. required String toDate,
})

Implementation

String getFromDateToDateForEvent({
  required String fromDate,
  required String toDate,
}) {
  return '${DateFormat("dd-MM-yyyy").format(DateFormat("yyyy-MM-dd hh:mm:ss").parse(fromDate.toString().replaceAll("T", " ")))} To ${DateFormat("dd-MM-yyyy").format(DateFormat("yyyy-MM-dd hh:mm:ss").parse(toDate.toString().replaceAll("T", " ")))}';
}