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

前端 未结 8 535
执念已碎
执念已碎 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:01

    The other solutions were close but no cigar... Here's what worked for me:

    columns.Bound(c => c.CreatedDate).ClientTemplate("#= kendo.toString(kendo.parseDate(CreatedDate), 'dd/MM/yyyy') #");
    

提交回复
热议问题