ASP.net;sharepoint
c# moss 程序人生
GridView中绑定了两个DateTime类型的字段,显示日期不显示时间,设置了DataFormatString属性为{0:yyyy-MM-dd},HtmlEncode="False" 。

                                   <asp:BoundField DataField="SetupTime" HeaderText='<%$ Resources:Companys,gvShopSetupTime %>' DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
posted on 2007-09-27 13:54  sumh  阅读(1242)  评论(0编辑  收藏  举报