I have a doubt in Kendo chart tool tip .That is how to display the date with time format .I have a field time: `2013-02-13 16:58:07`,
这样的事情,所以当我在工具提示模板中阅读时,我 将该字段称为
工具提示:{ 可见:是的, 模板:'#=类别#
, 字体:'11px Trebuchet MS' }
在工具提示中显示为 fri feb 01 2013 00:00:00 gmt + 0530(印度标准时间)**
如何更改并仅使用远程数据显示2013-02-13 16:58:07
I used dataitem in local data it was working fine but with remote data i am getting as undefined.
tooltip: {
visible: true,
format: "{0}",
template: 'DATE:#= dataItem.time<br/>'
}
答案 0 :(得分:1)
问题是时间格式,这是来自ww3c:
var d=new Date();
var n=d.toISOString();
这就是结果:
2013-02-28T07:41:04.188Z
还试着读一下: http://blog.stevenlevithan.com/archives/date-time-format