On Thu, Jun 30, 2011 at 2:38 PM, Sheldon Neilson <[email protected]>wrote:

> Anyone have some insight into why something like “new Date(2011, 6, 30) “
> returns July? I noticed that the example at
> http://code.google.com/apis/chart/interactive/docs/reference.html#dateformatteris
>  also a month ahead of itself...
> ****
>
> ** **
>
> I’m including http://www.google.com/jsapi and the default table
> visualization package.
>

Months in js are typically offset at zero when using the Date object. I
assume the google api used that too. So 0=jan, 5=june, 6=july.

- peter

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to