vendredi 2 janvier 2015

How to parse amcharts stock dates


How can we parse the amcharts stock dates?


Here example datas:



chartData1=[{
'date':'01-09-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'01-10-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'01-11-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'02-07-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'02-11-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'03-07-2010,00:05:05',
'value':2,
'volume':2
},{
'date':'03-08-2010,00:05:05',
'value':2,
'volume':2
},{
'date':'04-08-2010,00:05:05',
'value':1,
'volume':1
},{
'date':'04-09-2010,00:05:05',
'value':1,
'volume':1
}];


When use it like this the dates from and to time period coming from like this:



From
29-10-1920
To
30-10-1920


How can I fix this error with parsing dates?


Thanks





Aucun commentaire:

Enregistrer un commentaire