Skip to content

Instantly share code, notes, and snippets.

@dshaw
Created April 23, 2010 19:04
Show Gist options
  • Save dshaw/377008 to your computer and use it in GitHub Desktop.
Save dshaw/377008 to your computer and use it in GitHub Desktop.
JavaScript isDate() implementation
function isDate(str) {
return (Object.prototype.toString.call(new Date(str)) === "[object Date]");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment