protected string GetDateTimeText(object registerPeriod) { DateTime startDate = DateTime.Now; DateTime endDate = DateTime.Now; return(RepositoryDisplayFormatter.GetDateTimeText( registerPeriod, ReportFilterUtilities.ConvertToPeriodType(uxPeriodGraphicDrop.SelectedValue), startDate, endDate)); }
protected string GetDateTimeText(object registerPeriod) { DateTime startDate = DateTime.Now; DateTime endDate = DateTime.Now; if (ReportFilterUtilities.ConvertToPeriodType(uxPeriodDrop.SelectedValue) == PeriodType.Custom) { startDate = uxStartDateCalendarPopup.SelectedDate; endDate = uxEndDateCalendarPopUp.SelectedDate; } return(RepositoryDisplayFormatter.GetDateTimeText( registerPeriod, ReportFilterUtilities.ConvertToPeriodType(uxPeriodDrop.SelectedValue), startDate, endDate)); }