The string given to the date constructor should be an RFC2822 or ISO 8601 formatted date. In your example it isn’t. Try the following:
new Date("2012-11-02T19:30:00.000Z");
or using an alternate constructor:
new Date(2012, 11, 2, 19, 30, 0)
More Related Contents:
- Date constructor returns NaN in IE, but works in Firefox and Chrome
- install flash player automatically with javascript [closed]
- Why does Date.parse give incorrect results?
- How to add 30 minutes to a JavaScript Date object?
- Is the Javascript date object always one day off?
- How to subtract days from a plain Date?
- Get hours difference between two dates in Moment Js
- Current time formatting with Javascript
- How to convert an ISO date to the date format yyyy-mm-dd?
- How to start automatic download of a file in Internet Explorer?
- Access denied to jQuery script on IE
- How to getting browser current locale preference using javascript?
- Jquery: change event to input file on IE
- How to ignore user’s time zone and force Date() use specific time zone
- Javascript IE detection, why not use simple conditional comments? [duplicate]
- Save base64 string as PDF at client side with JavaScript
- Syntax error in IE using ES6 arrow functions
- Set date in input type date
- setAttribute and video.src for changing video tag source not working in IE9
- Why IE 11 display blank page rendering react app
- Convert Date from one format to another format in JavaScript
- Changing the type in IE with JavaScript
- Problem with jQuery.ajax with ‘delete’ method in ie
- How to get 2 digit year w/ Javascript? [duplicate]
- Check if date is in the past Javascript
- img onload doesn’t work well in IE7
- How to disable elements selection and resizing in contenteditable div?
- Javascript JSON Date parse in IE7/IE8 returns NaN
- control the working directory for ?
- How to parse a string into a date object at JavaScript?