public MvcHtmlString JQDatePicker(JQDatePicker datePicker, string id) { JQDatePickerRenderer jQDatePickerRenderer = new JQDatePickerRenderer(datePicker); datePicker.ID = id; return(MvcHtmlString.Create(jQDatePickerRenderer.RenderHtml())); }
public JQDatePickerRenderer(JQDatePicker datePicker) { this._model = datePicker; this._dateSeparator = Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator; this._model.DateFormat = datePicker.DateFormat.Replace("/", this._dateSeparator); this._dateFormat = "{0:" + datePicker.DateFormat + "}"; }
public MvcHtmlString JQDatePicker(JQDatePicker datePicker, string id) { JQDatePickerRenderer jQDatePickerRenderer = new JQDatePickerRenderer(datePicker); datePicker.ID = id; return MvcHtmlString.Create(jQDatePickerRenderer.RenderHtml()); }