New to Kendo UI for Angular? Start a free 30-day trial

Grid Dates Are Treated As Strings in Data Operations


ProductProgress® Kendo UI® for Angular Grid


During sorting, filtering, or editing, the dates in the Kendo UI for Angular Grid are not properly formatted and are treated as strings.


When the Grid data contains dates, they need to be instances of the JavaScript Date object. This ensures that dates are handled correctly during formatting, sorting, filtering, and editing.


If the data that is coming from a remote server is serialized, or if for unspecified reasons the data contains string representations of dates instead of actual JavaScript Date objects, map the data so that each date property has a JavaScript Date as its value.

    protected fetch(tableName: string, state: any): Observable<GridDataResult> {
        const queryStr = `${toODataString(state)}&$count=true`;

        return this.http
                map(response => (<GridDataResult>{
                    data: response['value'].map(item => {
                        item.dateField = new Date(item.dateField);
                        return item;
                    total: parseInt(response['@odata.count'], 10)

In this article

Not finding the help you need?