How can I stop the time from displaying in a GridView when displaying a date?

后端 未结 3 680
南笙
南笙 2021-01-14 22:59

I have a web application that I am working on(ASP.NET 2.0 & C#). In it, I have a gridview that gets data from an Oracle Database. Some of the data that I need to display

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 23:31

    You can use DataFormatString="{0:d}" HtmlEncode="False"

    do not forget to use the last section [htmlencode]

    I hope this works ... this works for me !!!!

    Arunendra

提交回复
热议问题