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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Datepicker format issue in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

127509 Nov 21,2016 05:24 AM UTC Nov 28,2016 05:27 AM UTC ASP.NET MVC 6
loading
Tags: Grid
Anoopa
Asked On November 21, 2016 05:24 AM UTC

When I load data to Grid the date field is displayed as '2014-01-01T00:00:00.000Z' even after setting the dateformat Format("{0:dd-MM-yyyy}") . The datatype for date in model is DateTime and is stored in Database in Dateformat.
I tried ej.parseJSON(data) inside Databound . Still the same issue. Please provide a solution.

Venkatesh Ayothi Raman [Syncfusion]
Replied On November 22, 2016 08:55 AM UTC

Hi Anoopa, 

Thanks for contacting Syncfusion support. 

We were unable to reproduce the reported issue and we have created a sample for your convenient. Please refer to the sample, 
Output
 
If you still face the same issue, then could you please provide following details? 
1)      Essential Studio version and browser details. 
2)      Issue replication procedure. 
3)      Provide full Grid code example. 
4)      A sample if possible or modified the given sample as issue reproducible. 

Regards, 
Venkatesh Ayothiraman. 


Anoopa
Replied On November 24, 2016 06:59 AM UTC

The solution which you provided is working perfectly. I am facing the issue only in a particular project. I tried copying my changes to the solution which you provided. That is working fine and date is getting formatted . I suspect there is some script conflict occurring in my project which is preventing the date formatting. Please help me out to solve this issue.

Venkatesh Ayothi Raman [Syncfusion]
Replied On November 25, 2016 09:42 AM UTC

Hi Anoopa, 
Thanks for the update. 

As you have mentioned “I suspect there is some script conflict occurring in my project which is preventing the date formatting”. For this, you can check version details like as follows, 
 

So could you please ensure whether which version of the script files you are using in your application. Also provide details if any script error thrown in console window? 
It would be helpful for us to find the problem and provide the solution as earliest. 

Regards, 
Venkatesh Ayothiraman. 


Anoopa
Replied On November 27, 2016 05:09 AM UTC

I have having a different version in my project. 

/*!
*  filename: ej.web.all.min.js
*  version : 14.1.0.46
*  Copyright Syncfusion Inc. 2001 - 2016. All rights reserved.
*  Use of this code is subject to the terms of our license.
*  A copy of the current license can be obtained at any time by e-mailing
*  licensing@syncfusion.com. Any infringement will be prosecuted under
*  applicable laws. 
*/
and I don't have any console errors.

Anoopa
Replied On November 27, 2016 05:27 AM UTC

It worked. I updated the js file with the latest version as you replied. I was having a older version. Thanks for your support. 

Venkatesh Ayothi Raman [Syncfusion]
Replied On November 28, 2016 05:27 AM UTC

Hi Anoopa, 

Thanks for the update. 

We are happy to hear that your requirement is achieved. 

Thanks, 
Venkatesh Ayothiraman. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;