(new Date(\'2012-12-01\')).getMonth() is 10 instead of 11 (getMonth is 0-indexed). I\'ve tested on Firefox, Chrome, and N
(new Date(\'2012-12-01\')).getMonth()
10
11
getMonth
For Firefox's case, at least, RFC2822 states that date specifications must be separated by Folding White Space. Try (new Date('2012 12 01')).getMonth(); Usage of - as a separator does not appear to be defined.
(new Date('2012 12 01')).getMonth();
-