GridView日期列使用DataFormatString格式化技巧
生活随笔
收集整理的這篇文章主要介紹了
GridView日期列使用DataFormatString格式化技巧
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
GridView日期列使用DataFormatString="{0:d}",沒有任何變化?依然顯示“2006-3-30 0:00:00”
?<asp:BoundField DataField="SignedDate" HeaderText="簽訂日期" DataFormatString="{0:d}" >
沒有變化 應該加上
HtmlEncode="false" ,DataFormatString的設置才會生效。
?<asp:BoundField DataField="SignedDate" HeaderText="簽訂日期" DataFormatString="{0:d}" HtmlEncode="false"/>
轉載于:https://www.cnblogs.com/liyejun/archive/2009/03/24/1420854.html
總結
以上是生活随笔為你收集整理的GridView日期列使用DataFormatString格式化技巧的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 常用的几种时间系统GMT、UTC等以及使
- 下一篇: Kettle下载与安装