Hi Guys,
I'm having some trouble trying to parse a deserialized date for a template...
my date after being deserialized seems like: /Date(1309471200000+0200)/
if I use that kind of date as a member of a kendo grid (using { type: "date" } and template: '#= kendo.toString(myDate,"dd/MM/yyyy") #') everything works great...
now I defined (inside a script tag in an .ashx page) a template for a listView object, and it is something like:
......
......
<div>
<span>${kendo.toString(myDate, "dd/MM/yyyy")}</span>
<span>${kendo.toString(MyNumber, "c02")}</span>
</div>
......
myNumber gets correctly formatted...
while myDate remains like /Date(1309471200000+0200)/
I've already tried kendo.format("{0:d}, myDate") with no result, and the culture is correctly set to italian.
Thanks in advance!
Fabio
I'm having some trouble trying to parse a deserialized date for a template...
my date after being deserialized seems like: /Date(1309471200000+0200)/
if I use that kind of date as a member of a kendo grid (using { type: "date" } and template: '#= kendo.toString(myDate,"dd/MM/yyyy") #') everything works great...
now I defined (inside a script tag in an .ashx page) a template for a listView object, and it is something like:
......
......
<div>
<span>${kendo.toString(myDate, "dd/MM/yyyy")}</span>
<span>${kendo.toString(MyNumber, "c02")}</span>
</div>
......
myNumber gets correctly formatted...
while myDate remains like /Date(1309471200000+0200)/
I've already tried kendo.format("{0:d}, myDate") with no result, and the culture is correctly set to italian.
Thanks in advance!
Fabio