How to Show Date Format in Webgrid in MVC3 as “MM/dd/yyyy”

前端 未结 2 1414
借酒劲吻你
借酒劲吻你 2021-01-27 06:51

How do I show Date Format in Webgrid in MVC3 as \"MM/dd/yyyy\"?

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-27 07:12

    you haven't shown any code so, im going to answer what i have got you can try

    grid.Column("Date",format:@ @item.Date.ToString("MM/dd/yyyy"))
    

提交回复
热议问题