When we try to export the grid data from Kendo UI Grid for Angular, One of the grid columns (Date column) doesn't format the actual date value. Here is my code.
<kendo-excelexport [data]="products" [group]="group" fileName="products.xlsx" [headerPaddingCellOptions]="headerPaddingCells" #excelexport>
<kendo-excelexport-column field="dateofService" title="Date(s) of Service" [width]="170" [cellOptions]="{ format: 'yy-MM-dd hh:mm:ss' }" >
</kendo-excelexport-column>
<kendo-excelexport-column field="memberName" title="Patient" [width]="250">
<ng-template kendoGridExcelTemplate >Bob Woolmer</ng-template>
</kendo-excelexport-column>
<kendo-excelexport-column field="provider" title="Provider" [width]="180">
</kendo-excelexport-column>
<kendo-excelexport-column field="status" title="Status" [width]="100">
</kendo-excelexport-column>
<kendo-excelexport-column field="patientResponsibility" title="You Owe" width="120" [cellOptions]="{ format: '$#,##0.00',bold:true }">
</kendo-excelexport-column>
</kendo-excelexport>
Date of Service columns always display "2017-09-09T00:00:00" instead of 09/09/2017.
Does any one know how to format the date to have just MM/dd/yyyy in excel export in angular kendo grid?