getFormatedDateForEvent method
Implementation
String getFormatedDateForEvent(dateToFormat,
{String? otherCondiation, String? otherString}) {
return DateFormat("dd${otherCondiation ?? " "}MMM ${otherString ?? ""}")
.format(DateFormat("yyyy-MM-dd hh:mm:ss")
.parse(dateToFormat.toString().replaceAll("T", " ")));
}