This is a migrated thread and some comments may be shown as answers.

Formatting a date in grid column

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andy
Top achievements
Rank 1
andy asked on 27 Nov 2012, 05:35 PM
Hi,

I am using Kendo UI Web and am trying to format a DateTime. The code snippet is shown as below:

$(

 

"#reportListGrid").kendoGrid({

 

columns: [

{ field:

 

"StartDateTime", title: "Upload Start Date", type: "date", width: "70px", format: "{0:dd/MM/yyyy}"},
...

My model contains the DateTime data but displays as shown below
2012-11-27T11:22:16.5049451-06:00

I have also tried the following but similarly does not work
template: '#= kendo.toString(StartDateTime,"MM/dd/yyyy") #'

Please help. Thanks in advance.

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
andy
Top achievements
Rank 1
Share this question
or