//MVC repeater控件显示日期
<%#Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"RecoverTime")).ToString("yyyy-MM-dd")%>
//GridView:
<asp:BoundField DataField="BeginDate" HeaderText="开始日期" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
//MVC repeater控件显示日期
<%#Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"RecoverTime")).ToString("yyyy-MM-dd")%>
//GridView:
<asp:BoundField DataField="BeginDate" HeaderText="开始日期" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />