check if string is datestring javascript

JavaScript
moment("2015-06-22T13:17:21+0000", moment.ISO_8601, true).isValid(); // true
Source

Also in JavaScript: