OHLC

OHLC (open-high-low-close) and candlestick charts show the same amount of information. While OHLC charts show the open and close via left and right facing horizontal lines, candlesticks show the open and close via a real body.

Code
var dt = new Date(row[key]);
return dt.toISOString().substring(0, 10);