<asp:BoundColumn DataField="sdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="发稿日期"></asp:BoundColumn>
<asp:BoundColumn DataField="sdate" DataFormatString="{0:d}" HeaderText="发稿日期"></asp:BoundColumn>
上面两行都行!!!!
转载于:https://www.cnblogs.com/A2008A/articles/1447077.html