highcharts - problems with dates

2

Good morning. Someone knows why at the time of Highcharts consider this date:

[Date.UTC(2016, 06, 6), 14]

Like July 6 , when should it be June 6 ?

Any way to correct it?

    
asked by Raphael 07.07.2016 в 06:35
source

1 answer

7

This is because for the javascript Date object, month 0 is January, February 1, so until month 5 is June and 6 is July, if you want the date to be June 6, you should

[Date.UTC (2016, 05, 6), 14]

    
answered by 07.07.2016 / 06:49
source