This works in all browsers on my box – try it in the console:
alert(new Date('2001/01/31 12:00:00'))
so
new Date('2001-01-01T12:00:00Z'.replace(/\-/g,'\/').replace(/[T|Z]/g,' '))
IE8, FF3.6, Safari4, Chrome
More Related Contents:
- How to add hours to a Date object?
- Display date/time in user’s locale format and time offset
- Compare two dates with JavaScript
- Parsing ISO 8601 date in Javascript
- Get Locale Short Date Format using javascript
- Format date with Moment.js
- How can I calculate the number of years between two dates?
- Javascript format date / time [duplicate]
- javascript Date timezone issue
- JSON Stringify changes time of date because of UTC
- How to get the exact local time of client?
- Convert normal date to unix timestamp
- How to get the current date or/and time in seconds
- Safari JS cannot parse YYYY-MM-DD date format?
- Get next date from weekday in JavaScript
- Firestore Timestamp.fromDate not UTC
- How to get datetime in JavaScript?
- Regex and ISO8601 formatted DateTime [duplicate]
- Javascript: output current datetime in YYYY/mm/dd hh:m:sec format
- Stop javascript Date function from changing timezone offset
- How do I get a timestamp in JavaScript?
- Date.toISOString() but local time instead of UTC
- Parsing Date from webservice
- create javascript date UTC
- How to check if a string is a legal “dd/mm/yyyy” date?
- Best JavaScript Date Parser & Formatter? [closed]
- If javascript “(new Date()).getTime()” is run from 2 different Timezones
- JavaScript – Get system short date format
- how to update time regularly?
- Get today date in Google Apps Script