Page 1 of 1

Culture of TeeChart ?

Posted: Thu Feb 05, 2004 10:35 am
by 8120354
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 ??

Posted: Fri Feb 06, 2004 3:03 pm
by Chris
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();
    }

Posted: Mon Feb 09, 2004 8:26 am
by 8120354
So why Teechart stills display date format like 13/10/2003 where the the date format has been defined as yyyy-mm-dd ???

Posted: Mon Feb 09, 2004 12:21 pm
by Chris
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