kendo grid - I want to format my date as its coming in MM/dd/yyyyTHH:MM:SS in Angularjs 2 and i want it should be only MM/DD/YYYY -


here line of code angularjs kendo ui grid.

 <kendo-grid-column field="createdat" title="created date" width="250" filter="date"></kendo-grid-column> 

use date filter ng-template

<kendo-grid-column field="createdat" title="created date" width="250" >         <ng-template kendogridcelltemplate let-dataitem>             {{dataitem.dob | date:shortdate}}         </ng-template> </kendo-grid-column> 

and in ts,

shortdate="dd/mm/yyyy" 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -