Kendoui时间格式问题

http://www.bubuko.com/infodetail-2043618.html

 {field: 'senddate', title: '送签时间',format: "{0: yyyy-MM-dd}",template: "<span class='ellipsis' title='#=data.senddate#'>#=data.senddate?kendo.toString(data.senddate, 'yyyy-MM-dd'):''#</span>"},

        {field: 'outdate', title: '出签时间',format: "{0: yyyy-MM-dd}",template: "<span class='ellipsis' title='#=data.outdate#'>#=data.outdate?kendo.toString(data.outdate, 'yyyy-MM-dd'):''#</span>"},

       不需要template的时候,只加format就是可以的。如果加了 template属性,就需要以上面的方式格式化。并且要申明字段为date,如下:

 Kendoui时间格式问题

 

 

一定要申明格式为date类型