Created
June 24, 2016 12:05
-
-
Save nurbek-ab/243896d92cb2bb73746bd53c6f8e456b to your computer and use it in GitHub Desktop.
Check if a string is a date string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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