I have a string that I retrieve from a JSON object and I am trying to cast that to a javascript date variable as given below but its returning an Invalid date all the time. Any reasons why?
jsonObj["dateValue"]; //has a value: 2016-11-04T08:08:42.5780021+00:00
var dateValue = new Date(jsonObj["dateValue"]); // returns invalid date??