Re: Off topic: dateTime formatting in Java

java.text.SimpleDataFormat("yyyy-MM-ddTHH:mm:ssZ")

should render 1999-05-31T13:20:00-0500 (note the time zone is missing a 
colon) but this may hopefully help.

Regards,
Lachlan Aldred

At 07:22 AM 4/11/2003 +0100, you wrote:



>Hi,
>
>sorry, that this is slightly off topic, but I think there's a good chance 
>that one or the other reader has already encountered the same problem in 
>the past. so I hope it's fine to ask.
>
>XML Schema specifies, that instances of xs:dateTime are formatted like
>
>     1999-05-31T13:20:00-05:00
>
>In Java formatting issues like these are usually performed by using an 
>instance of java.text.DateFormat. However, I seem to be unable to create a 
>matching instance (except for deriving a subclass, of course). Any suggestions?
>
>
>Regards,
>
>Jochen
>
>

Received on Tuesday, 4 November 2003 21:51:21 UTC