Hi,
I'm working with kendo listview and datasource.
Dates from Json data are returned as "\/Date(1338364370930)\/".
This is my current date part template:
I've had to add the "new Date(parseInt(CreateDate.substr(6)))" part in order to show correctly the date.
Without this code the date appear \/Date(1338364370930)\/ without conversion. This is my first issue. Why kendo datasource or listview cannot process or convert directly json dates?
My second issue is I'm converting the date to a short format with "d", currently my culture is spanish and the date appears as "5/30/2012" (m/dd/yyyy). This is wrong, in spain it must be "30/5/2012" (dd/m/yyyy). I've checked my internet explorer and the language is set to spanish. Tried with Chrome and with the same result. Any idea?
Regards
Jose
I'm working with kendo listview and datasource.
Dates from Json data are returned as "\/Date(1338364370930)\/".
This is my current date part template:
<
dt
>@FieldNames.CreateDate :</
dt
>
<
dd
>#= (CreateDate == null) ? ' ' : kendo.toString(new Date(parseInt(CreateDate.substr(6))), "d") #</
dd
>
I've had to add the "new Date(parseInt(CreateDate.substr(6)))" part in order to show correctly the date.
Without this code the date appear \/Date(1338364370930)\/ without conversion. This is my first issue. Why kendo datasource or listview cannot process or convert directly json dates?
My second issue is I'm converting the date to a short format with "d", currently my culture is spanish and the date appears as "5/30/2012" (m/dd/yyyy). This is wrong, in spain it must be "30/5/2012" (dd/m/yyyy). I've checked my internet explorer and the language is set to spanish. Tried with Chrome and with the same result. Any idea?
Regards
Jose