Hi,
We are using angularJS and on a page we have a grid. One of the columns in the grid we are supposed to show DateTime. From the service we are getting the data in milliseconds, like: "myNewDate":1408441123075
So for the column in the grid options we:
{
field: "myNewDate",
title: "Date and Time",
width: "15%",
type: "date",
template: "#= kendo.toString(kendo.parseDate(myNewDate, 'yyyy-MM-dd HH:mms'), 'MM-dd-yyyy HH:mms') #"
}
But it is giving us an error on kendo.parseDate. We would like to show not only the Date but also the time in hours and seconds. The way we are assigning
data to the grid is by having an object of DataSource (kendo.data.DataSource).
Can you please let us know how shall we go about it?
Appreciate your quick help on this.
Thanks!
We are using angularJS and on a page we have a grid. One of the columns in the grid we are supposed to show DateTime. From the service we are getting the data in milliseconds, like: "myNewDate":1408441123075
So for the column in the grid options we:
{
field: "myNewDate",
title: "Date and Time",
width: "15%",
type: "date",
template: "#= kendo.toString(kendo.parseDate(myNewDate, 'yyyy-MM-dd HH:mms'), 'MM-dd-yyyy HH:mms') #"
}
But it is giving us an error on kendo.parseDate. We would like to show not only the Date but also the time in hours and seconds. The way we are assigning
data to the grid is by having an object of DataSource (kendo.data.DataSource).
Can you please let us know how shall we go about it?
Appreciate your quick help on this.
Thanks!