Skip to content

Instantly share code, notes, and snippets.

@MarcoVigna17
Created September 10, 2019 19:45
Show Gist options
  • Save MarcoVigna17/2c4504ab8fc70966fd98cd4f7b4bba70 to your computer and use it in GitHub Desktop.
Save MarcoVigna17/2c4504ab8fc70966fd98cd4f7b4bba70 to your computer and use it in GitHub Desktop.
ISO8601 date time with timezone regex
^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9]).([0-9]+)(Z|([+-])(1[0-2]|0[1-9]):?([0-5][0-9]))$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment