I need to generate a JavaScript date object from a specific string format.
String format: yyyy,mm,dd
Here is my code snippet:
var oDate = new Date('2013,10,07');
console.log(oDate);
While Chrome, IE, and FF display the correct date, Safari shows NaN
.