We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Format date coming back 'Date(1365715800000)' as MM/dd/yyyy

When I get data back from server side in JSON format, the date is formatted similar to 'Date(1365715800000)'.  How can I format the grid to not display it that way?

Grid issue


1 Reply

MS Madhu Sudhanan P Syncfusion Team December 7, 2018 04:44 AM UTC

Hi Crabtree, 

Thanks for contacting Syncfusion support. 

From the image we suspect that you are assigning the dataSource to the grid externally at the client side. If so please parse the data using our parseJson method as follow to convert the server string to date objects. 

    var grid = document.getElementById('Grid').ej2_instances[0] 
    grid.dataSource = ej.data.DataUtil.parse.parseJson(data) 

If you are still facing this problem then please share us the grid rendering code and screenshot of the network tab to check request and response data. 

Madhu Sudhanan P 

Live Chat Icon For mobile
Up arrow icon