date time format not working
Posted: Mon Oct 18, 2010 10:33 am
Hi Everyone.
This is my first time on the support forum so sorry if i have missed some information.
Im trying to display date time data on a graph and i want it to be quick so I add data using arrays and date time as milliseconds since epoch:
load the data into arrays:
The graph displays fine but the x axis is obviously a number.
So i read the tutorial and the tried the following code with no success:
then i use the editor and by double clicking on one of the series and then selecting DateTime in General the problem is fixed. (Apart from the fact i need 24 hour time)
Please help.
Asim
This is my first time on the support forum so sorry if i have missed some information.
Im trying to display date time data on a graph and i want it to be quick so I add data using arrays and date time as milliseconds since epoch:
Code: Select all
rs = conn.QueryDB("Select millisecondssinceepoch(thedatetime), chan257"
+ "from data10hz "
+ "where thedate = to_date('" + selectedDate + "','YYYY-MM-DD') and resim = '0'"
+ "order by thedatetime");
Code: Select all
Line1.add(xarray1, yarray1);
So i read the tutorial and the tried the following code with no success:
Code: Select all
tChart1.getAxes().getBottom().isDateTime();
tChart1.getAxes().getBottom().getLabels().setDateTimeFormat("dd-MM-yyyy hh:mm:ss");
Please help.
Asim