is-iso-date
is-iso-date is a simple utility to check if a string is an ISO-compliant date.
Install
$ npm install is-iso-date
Usage
var isISODate = ; console; // trueconsole; // falseconsole; // trueconsole; // falseconsole; // trueconsole; // falseconsole; // false
Reference
This is basically just the regexp from this StackOverflow discussion wrapped in a tiny library with some tests: http://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime