Currently I am working with the Kendo Ui Grid and attempting to implement filtering by DateRange. Here is a snippet of my current code:
HTML:
<kendo-grid-column field="createdate" title="Creation Date" width="150">
<ng-template kendoGridFilterCellTemplate let-filter>
<app-date-range-filter-cell class="date-range-filter" [filter]="filter" field="createdate">
</app-date-range-filter-cell>
</ng-template>
</kendo-grid-column>
In the response, the date is shown as
createdate: "2019-04-19T15:47:48.000+0000"
, but displayed in the Grid as createdate: "19/04/2019, 18:47:48"
using the following code:
this.createdate = this.datePipe.transform(this.createdate, 'dd/MM/yyyy, HH:mm:ss');
I need help to ensure that filtering by DateRange
works correctly by only considering the date portion, since Kendo DateRange requires a type of Date
while mine is currently a type of string
. Can anyone provide any assistance?