Culture of TeeChart ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Culture of TeeChart ?

Post by nico193 » Thu Feb 05, 2004 10:35 am

In my application, I define my own culture to have specific number and date time format. I set the Application.CurrentCulture with this specific culture. Everything works OK.

When I use the function Steema.Teechart.Utils.DateTime to convert a DateTime value into a double value, my application culture has changed !! Why ??

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri Feb 06, 2004 3:03 pm

Hi --
In my application, I define my own culture to have specific number and date time format. I set the Application.CurrentCulture with this specific culture. Everything works OK.

When I use the function Steema.Teechart.Utils.DateTime to convert a DateTime value into a double value, my application culture has changed !! Why ??
Running Lutz Roeder's .NET Reflector on the teechart.dll assembly you will be able to see that Culture=neutral.

The Steema.Teechart.Utils.DateTime function simply does this:

Code: Select all

static public double DateTime(DateTime value)
    {
      return value.ToOADate();
    }
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by nico193 » Mon Feb 09, 2004 8:26 am

So why Teechart stills display date format like 13/10/2003 where the the date format has been defined as yyyy-mm-dd ???

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Feb 09, 2004 12:21 pm

Hi --
So why Teechart stills display date format like 13/10/2003 where the the date format has been defined as yyyy-mm-dd ???
Where is it displaying this format, on the axes or the series marks?

Have a look at the following TeeChart Help Topics:
Steema.TeeChart.AxisLabels.DateTimeFormat Property
Steema.TeeChart.TChart.GetAxisLabel Event
Steema.TeeChart.Styles.Series.GetSeriesMark Event
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply