Invalid dateTime

I am having problems when displaying in a DataGrid a value of type timeStampt, the value obtained in json is the following:

{"result":["date":"2020-03-12T13:49:03.615989"],"count":1}

My data grid column

  <e-grid-column field="date" headerText="date" type="dateTime"  textAlign="Right"></e-grid-column>

And the result shown on the grid:

Invalid date

5 Replies

SK Sujith Kumar Rajkumar Syncfusion Team March 16, 2020 09:11 AM UTC

Hi Diego, 

Greetings from Syncfusion support. 

We checked your reported problem but unfortunately were unable to reproduce it from our end. Please check below sample for your reference, 


You can compare the above sample with your application to see if you have missed anything. 

It would be helpful to identify your problem better if you could share the following information, 

  • Console error thrown(if any).
  • Screenshot of reported problem.
  • Syncfusion package version used.
  • Grid code file.
  • If possible provide us a simple sample to replicate the problem or try reproducing it in the above provided sample.

Note: If you are using old Syncfusion packages we suggest you to upgrade to the latest version and check if this resolves the problem. 


Let us know if you have any concerns. 
  
Regards, 
Sujith R 



DI diego March 16, 2020 09:19 AM UTC

The problem comes from the collation of the DB or the value of the data, I explain: In netcore if I insert in BBDD it saves me for example:
03/16/2020 10: 18: 00.0123213 if I edit this value and save it without the milliseconds, it parses me correctly.


SK Sujith Kumar Rajkumar Syncfusion Team March 17, 2020 11:22 AM UTC

Hi Diego, 

We could not clearly understand your query from the last update. Could you please explain in detail and share us the information requested in the previous update to further validate the reported problem from our end. 

Let us know if you have any concerns. 

Regards, 
Sujith R 



DI diego April 8, 2020 10:16 AM UTC

Thanks I managed to solve the error, I had an error in the type of data in BBDD


SK Sujith Kumar Rajkumar Syncfusion Team April 9, 2020 04:39 AM UTC

Hi Diego, 

We are glad to hear that you have resolved the problem. Please get back to us if you require any further assistance. 

Regards, 
Sujith R 


Loader.
Up arrow icon