Last active
August 29, 2015 14:05
-
-
Save VanDalkvist/bcbb5f03cdd6a7e5520c to your computer and use it in GitHub Desktop.
iso8601 date regexp
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
var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; | |
// 1 2 3 4 5 6 7 8 9 10 11 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment