Skip to content

Instantly share code, notes, and snippets.

@allensarkisyan
Created November 28, 2012 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allensarkisyan/4158486 to your computer and use it in GitHub Desktop.
Save allensarkisyan/4158486 to your computer and use it in GitHub Desktop.
ISO8601 DateTime RegExp pattern
var dtPattern = /^(\d{4})(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment