Page 1 of 1

Problem with CursorTool

Posted: Fri Apr 04, 2008 2:40 pm
by 9644416
Hello,

My name is Marcelo.

I'm generating a grafic, in X axis I'm putting dates and in Y axis I'm putting double..

I'm having problems with CursorTool, when I get the values, I need to take the exactly value in X axis,
but I get a value double when I put a date...
I try to convert this value to date..but It's imposible.

Any idea, How I could to solve this problem?

Thank in advance.

Best Regards
Marcelo

Posted: Fri Apr 04, 2008 2:54 pm
by narcis
Hi Marcelo,

You could try using FromOADate method, for example:

Code: Select all

			DateTime dt = DateTime.FromOADate(tChart1[0].XValues[0]);
Hope this helps!