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
Post a Comment