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

后端 未结 3 682
南笙
南笙 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:18

    You can apply a dataformatstring in the gridview column to only show the date.

    To get it to work you must make sure that HTMLEncode is set to false.

    More information

提交回复
热议问题