Skip to content

Instantly share code, notes, and snippets.

@nurbek-ab
Created June 24, 2016 12:05
Show Gist options
  • Save nurbek-ab/243896d92cb2bb73746bd53c6f8e456b to your computer and use it in GitHub Desktop.
Save nurbek-ab/243896d92cb2bb73746bd53c6f8e456b to your computer and use it in GitHub Desktop.
Check if a string is a date string
function isDateString(str) {
return !isNaN(Date.parse(str));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment