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

Localization for charts

Thread ID:

Created:

Updated:

Platform:

Replies:

118034 Jan 22,2015 12:42 PM UTC Jan 23,2015 07:12 AM UTC ASP.NET MVC 1
loading
Tags: Gantt
Alexander Carlsen
Asked On January 22, 2015 12:42 PM UTC

I'm having troubles getting dates to work properly as I'm from europe all my dates are stored in a DB as dd/MM/YY
but when using these controls they expect en-US so june first becomes 6th of january.

I've read the documentation but don't understand how I can use Javascript to change the date formats.

John Rajaram [Syncfusion]
Replied On January 23, 2015 07:12 AM UTC

Hi Alexander,

Thank you for using Syncfusion products.

We would like to inform you that, you can change the date format based on the Localization by using the DateFormatproperty.

Please refer the below code snippets for more details.

Code snippets:

@(Html.EJ().Gantt("Gantt").

   //...

   .DateFormat("dd/MM/yyyy")

   .Datasource(ViewBag.dataSource)

 )

@(Html.EJ().ScriptManager())

 

And also please refer the following online documentation link for more information about the various properties in Gantt control.

Link:  http://staging.syncfusion.com:96/ejGantt.html#dateFormat

We have also prepared a sample based on this with date format as “dd/MM/yyyy” and you can find the sample under the following location.

Sample Location: http://www.syncfusion.com/downloads/support/directtrac/118034/MVC09NewSampleDateFormat-1216954247.zip

Please let us know if you require further assistance on this.

Regards,
John. R



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

;