Skip to content

date-time format pattern #45

pixelshaded opened this Issue Jul 18, 2012 · 1 comment

2 participants


Trying to validate the following ISO 8601 date-time:


^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-[0-9]{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$ doesnt seem to match

I tried one here:


And it is able to match the date-time.

cew821 commented Nov 15, 2013

I had a similar problem. Another post I found suggests this regex might work in terms of tolerating a long list of date-time formats that are technically 8601 compliant.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.