Created
November 28, 2012 01:36
-
-
Save allensarkisyan/4158486 to your computer and use it in GitHub Desktop.
ISO8601 DateTime RegExp pattern
This file contains hidden or 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 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