Skip to content

Instantly share code, notes, and snippets.

@VanDalkvist
Last active August 29, 2015 14:05
Show Gist options
  • Save VanDalkvist/bcbb5f03cdd6a7e5520c to your computer and use it in GitHub Desktop.
Save VanDalkvist/bcbb5f03cdd6a7e5520c to your computer and use it in GitHub Desktop.
iso8601 date regexp
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