Format DateTime in Kendo UI Grid using asp.net MVC Wrapper

前端 未结 8 538
执念已碎
执念已碎 2021-02-01 14:38

I want to build a Kendo UI Grid with format date dd//MM/yyyy. However, all questions that I found about this, it were resolved with code Format(\"{0:d}\");. So,

8条回答
  •  暖寄归人
    2021-02-01 15:03

    .Format("{0:" + System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern + "}");
    

    There may be some other options in System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat that might work for you if that is not what you want.

提交回复
热议问题