Posted 5 October 2017, 8:54 am EST
My json file contains a colum with DateTime as 2017-09-25T00:00:00.000Z
My Flexgrid is declared as:
<wj-flex-grid #flex
[autoGenerateColumns]=“true”
[headersVisibility]=“1”
[allowSorting]=“true”
[itemsSource]=“filterData”
[selectionMode]=“1”
[showMarquee]=“true”
[isReadOnly]=“true”
[keyActionTab]=“3”
(formatItem)=“formatItem(flex,$event)”
(initialized)=“initFlex(flex)”
(loadedRows)=“loadedRows(flex)”
(dblclick)=“onDoubleClick(flex,$event)”
(selectionChanged)=“onSelectionChanged(flex)”
(mousedown)=“mouseDown($event)”
(mouseout)=“mouseOut($event)”
(mousemove)=“mouseMove($event)”>
<wj-flex-grid-filter [filterColumns]="['teamMemberLeader', 'teamMemberName', 'tradeCategory', 'tradeSubCategory']"> </wj-flex-grid-filter> </wj-flex-grid>
What is the appropriate way to format the above datetime into “mm/dd/yyyy” to be displayed on the grid. Thank you very much.