Is this a bug? - http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html graph should show january from the data

9 views
Skip to first unread message

roy

unread,
Jun 14, 2011, 3:01:11 AM6/14/11
to Google Visualization API
Is this a bug

http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html

the date should be January but is showing as february

Riccardo Govoni

unread,
Jun 14, 2011, 5:19:47 AM6/14/11
to google-visua...@googlegroups.com
Javascript Date objects count months from 0 (https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date ), so the "new Date(2008, 1, 1)" is indeed the first day of February ( January being month 0, February is month 1 and so on).

/R.
Reply all
Reply to author
Forward
0 new messages