When you set the property
chart.Axes.Bottom.Labels.DateTimeFormat = "dddd"
In my computer the day of the week is shown in spanish. I would like to configurate the language of my application in my application. Where take teechart the language from?
Thanks
Language of datetimeformat
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Language of datetimeformat
Following the MSDN documentation for DateTime.ToString method, you can use:wakeup wrote:When you set the property
chart.Axes.Bottom.Labels.DateTimeFormat = "dddd"
In my computer the day of the week is shown in spanish. I would like to configurate the language of my application in my application. Where take teechart the language from?
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-FR");
MessageBox.Show(DateTime.Today.ToString("dddd"));
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Language of datetimeformat
The instruction for giving to teechart the time format is chart.Axes.Bottom.Labels.DateTimeFormat = "dddd" , not "toString" possibility here...
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Language of datetimeformat
Have you tried adding the line:wakeup wrote:The instruction for giving to teechart the time format is chart.Axes.Bottom.Labels.DateTimeFormat = "dddd" , not "toString" possibility here...
Code: Select all
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-FR");
Code: Select all
chart.Axes.Bottom.Labels.DateTimeFormat = "dddd"
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Language of datetimeformat
Thanks, it runs, but this change does also other changes in the application like change the decimal separator, in the numeric fileds of the applicaion. Is not possible only to change the language of the datetime format?
Thanks
Thanks
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Language of datetimeformat
This is not a TeeChart issue, but a .NET Framework issue. As far as I know, changing the CurrentCulture is the only way to change the language the .NET Framework uses to display DateTime values.wakeup wrote:Thanks, it runs, but this change does also other changes in the application like change the decimal separator, in the numeric fileds of the applicaion. Is not possible only to change the language of the datetime format?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |