iso 8601 date format

Hello,

After reading several post about iso 8601 date format,( like this one http://www.w3.org/TR/NOTE-datetime for example), I think that it could be easier to parse iso 8601 date if we could use both "strict standard" and short format.

We could parse format according this: 
[yyyy-MM-dd|yyyyMMdd][T(hh:mm[:ss[.sss]]|hhmm[ss[.sss]])]?[Z|[+-]hh:mm]]

For example:
2007-08-13T19:51:23.2Z
20070813T19:51:23Z
2007-08-13T195123Z
2007-08-13T19:51Z
20070813T19:51Z
20070813Z

I hope it can help a little,

Thanks for you're job, time 

Best Regards

Jérôme


I'm agree with you.
But it's not an IndexOutOfBounds that client see, it's a ParseException because of line 217/218.

I can replace the line 177 by:
 throw new ParseException("Failed to parse date ["' + date + "']: No time zone indicator", pos.getIndex());

But it break a little the logic of this function,

Let me known what your prefer