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

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

    I don't know about Kendo UI but it looks to me like you want to pass a string formatted date rather than a DateTime object.

    The /Date(...)/ output looks like a JSON formatted date from .Net.

    I would convert the date to a string using somthing like myDateTime.ToString("dd/MM/yyyy"); before passing it to the control.

提交回复
热议问题