0
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`,

像这样的东西,所以当我在工具提示模板中阅读时,我将该字段称为

工具提示:{可见:true,模板:' #= category #
,字体:'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/>'

                        }
4

1 回答 1

1

问题是时间格式,这是来自 ww3c:

var d=new Date();
var n=d.toISOString();

这是结果:

2013-02-28T07:41:04.188Z

也尝试阅读:http: //blog.stevenlevithan.com/archives/date-time-format

于 2013-02-28T07:44:06.967 回答