You must be logged in to post your query.
Home › Forums › Report Bugs › new Date() Bug
Hi
https://canvasjs.com/editor/?id=https://canvasjs.com/example/gallery/spline/twitter-mentions/
The function displays days one month forward! Date(2013,4,1 ) -> display: 2013 may 1 Date(2013,12,1 ) -> display: 2014 jan 1 etc
Cheers: Csaba
Hi,
0 Should be January 4 Should be may 12 should be the month after december. Depending on how strict you are on years it’s January or ???
Yes this is good idea. Thx!
As Tim mentioned, 0 is Jan and 11 is Dec in JavaScript – it follows zero based index for months. Please refer to this post for more information.
— Sunil
You must be logged in to reply to this topic. Login/Register