I have array with this timestamps,
var labels = ["2018-12-01T00:00:00.000Z",
"2018-12-02T00:00:00.000Z",
"2018-12-09T00:00:00.000Z",
"2018-12-09T00:00:00.000Z",
"2018-12-18T00:00:00.000Z"
]
what is the best way to have array in format 2018-12-01. I need to have date for graph