Date format without time in ASP.NET Gridview

后端 未结 6 1295
Happy的楠姐
Happy的楠姐 2020-11-29 11:50

in ASP.NET gridview binding two dates. I want to display dd/MM/yyyy but it displays 10/03/2014 00:00:00.



        
6条回答
  •  无人及你
    2020-11-29 12:56

    I achieved it with {0:dd/MM/yyyy} on the DataFormatString property of the field

    It works well

提交回复
热议问题