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

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

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

2条回答
  •  深忆病人
    2021-01-27 07:19

    PLease don't use magic format in ToString. You can set cultury in server or client. and use Date.ToShortDate()

提交回复
热议问题