How to create a date object from string in javascript [duplicate]

var d = new Date(2011,10,30);

as months are indexed from 0 in js.

Leave a Comment