예제 #1
0
        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
            });
        }
예제 #2
0
        public string FormatTime(DateTime moment) =>

        _dateTimeFormatter.FormatTime(Locale, moment);