The month value in new Date() is a 0-11 counter.  0 = January, so new
Date(2008, 0, 1) would return 1 January, 2008.

On Feb 23, 8:37 am, V <[email protected]> wrote:
> Why is every month +1?
> The demo also does it;
>
> http://code.google.com/apis/ajax/playground/?type=visualization#annot...
>
> data.setValue(0, 0, new Date(2008, 1 ,1));
> That is 1 januari 2008.
> But in the graph you see 1 februari 2008?
>
> Why is that?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to