[OT] Parsing xs:dateTime values

2008-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I posted this on the commons-user mailing list, but I'm not getting any love. I'm cross-posting to see if anyone on this list might have any good ideas. | Hi, I'm looking for an implementation of a String-Date converter for | xs:dateTime,

Re: [OT] Parsing xs:dateTime values

2008-05-15 Thread Robert Koberg
Hi, You don't need regexp. Do you mean something like: private static final String ISO8601_DATEFORMAT = -MM-dd'T'HH:mm:ss; private static final java.text.SimpleDateFormat ISO8601 = new java.text.SimpleDateFormat( ISO8601_DATEFORMAT, java.util.Locale.US); public static final

Re: [OT] Parsing xs:dateTime values

2008-05-15 Thread DJohnson
); } public synchronized Date parse(String arg0) throws ParseException { return super.parse(arg0); } } Please respond to Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org cc: Subject:Re: [OT] Parsing xs:dateTime values Hi, You

Re: [OT] Parsing xs:dateTime values

2008-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Koberg wrote: | You don't need regexp. Do you mean something like: | | private static final String ISO8601_DATEFORMAT = | -MM-dd'T'HH:mm:ss; This does not account for the milliseconds and timezone. The TX format for xs:dateTime

Re: [OT] Parsing xs:dateTime values

2008-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DJohnson, [EMAIL PROTECTED] wrote: | I have run into problems using SimpleDateFormat in this way in a | multiprocessor environment, which lead to using the following simple | subclass instead: IMO it's better just to create DateFormat objects on

Re: [OT] Parsing xs:dateTime values

2008-05-15 Thread Robert Koberg
@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org cc: Subject:Re: [OT] Parsing xs:dateTime values Hi, You don't need regexp. Do you mean something like: private static final String ISO8601_DATEFORMAT = -MM-dd'T'HH:mm:ss; private static final