How to create a date object from string in javascript
You definitely want to use the second expression since months in JS are enumerated from 0.
Also you may use Date.parse method, but it uses different date format:
var timestamp = Date.parse("11/30/2011");
var dateObject = new Date(timestamp);
var d = new Date(2011,10,30);
as months are indexed from 0 in js.