Home › Forums › Chart Support › Convert to date format › Reply To: Convert to date format
I gave it a try.
var rawData = [ {"y": [10714.7, 10717.95, 10714.3, 10717.5], "x": "2018/01/16 14:26:00"}, {"y": [10718.0, 10718.0, 10713.45, 10716.2], "x": "2018/01/16 14:27:00"}, {"y": [10716.6, 10722.0, 10716.1, 10719.15], "x": "2018/01/16 14:28:00"} ] for (i = 0; i < 3; i++){rawData[i]["x"]=new Date(rawData[i]["x"]);}
Mostly, it is ok. But the it gives Date, not DateTime.
I tried new Date(rawData[i]["x"]).format("isoDateTime") But error.
new Date(rawData[i]["x"]).format("isoDateTime")
What I maybe missing? Thanks.