I believe that you should pass it either as a date string, like this:
var date = new Date ( 'January 1, 2009 12:15:10' );
or as a list of parameters, separated by commas, for example:
var date = new Date ( 2009, 0, 1, 12, 15, 0 );
In your example, you are mixing both approaches.
source share