Saved Bookmarks
| 1. |
Why Are My Months And Days Off By One? |
|
Answer» Google Charts uses JAVASCRIPT, which uses zero-based indexing. The first day of the month is 0, and the months range from 0 (January) to 11 (December). If your code assumes one-based indexing, subtract one before PUTTING the your data into a JavaScript DATE object. Google Charts uses JavaScript, which uses zero-based indexing. The first day of the month is 0, and the months range from 0 (January) to 11 (December). If your code assumes one-based indexing, subtract one before putting the your data into a JavaScript date object. |
|