protected override void WriteHtml(HtmlTextWriter writer) { if (string.IsNullOrEmpty(Format)) { Format = CultureInfo.DateTimeFormat.ShortDatePattern; } DatePickerHtmlBuilderBase renderer = new DatePickerHtmlBuilderBase(this, "date"); renderer.Build().WriteTo(writer); base.WriteHtml(writer); }
protected override void WriteHtml(System.Web.UI.HtmlTextWriter writer) { if (string.IsNullOrEmpty(Format)) { DateTimeFormatInfo dateTimeFormats = CultureInfo.DateTimeFormat; Format = dateTimeFormats.ShortDatePattern + " " + dateTimeFormats.ShortTimePattern; } DatePickerHtmlBuilderBase renderer = new DatePickerHtmlBuilderBase(this, "datetime"); renderer.Build().WriteTo(writer); base.WriteHtml(writer); }