getFromDateToDateForEvent method
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", " ")))}';
}