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

formatting date

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 27 Aug 2012, 02:12 PM
How do I format a date that is coming in like this: 2012-08-23T14:53:08.02 ?
I've got the grid column defined with a template 

template: '#= kendo.toString(DateReceived, "MM/dd/yyyy") #'

But it's not working. Data is coming from a Web API method and in the model it's a DateTime property. 

1 Answer, 1 is accepted

Sort by
0
Rayne
Top achievements
Rank 1
answered on 28 Aug 2012, 01:57 PM
I fixed it myself using this as my template:
'#= kendo.toString(new Date(DateReceived), "MM/dd/yyyy") #'

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