Added formatVisitDates from EmrUiUtils