public ActionResult ConferenceTime() { var conference = calendarItemRepository.GetFromType(CalendarEntryType.Conference); string startTime = dateTimeFormatter.FormatTime(conference.StartDate); string endTime = dateTimeFormatter.FormatTime(conference.EndDate.Value); string conferenceTimes = string.Format("{0} to {1}", startTime, endTime); return(new ContentResult { Content = conferenceTimes }); }
public string FormatTime(DateTime moment) => _dateTimeFormatter.FormatTime(Locale, moment);