Stock Highcharts date format

Viewed 161

I am creating a JSON file for the Stock Highcharts charting library. I need to know what format the date needs to be in. I'm currently using a string with YYYY/MM/DD as the date.

The JSON that the example gives is here: https://demo-live-data.highcharts.com/aapl-ohlcv.json. The first number is the date, but I do not understand the format. Does any one know what format that is?

Thank you!

2 Answers

It appears to be Unix time, albeit with millisecond precision:

console.log(new Date(1571059800000))

Related