See here. http://stackoverflow.com/questions/15245307/java-simpledateformat-timezone-offset-with-minute-seperated-by-colon
– peter.petrovJan 09 '14 at 11:40
@peter.petrov According to [the doc](http://docs.oracle.com/javase/1.5.0/docs/api/java/text/SimpleDateFormat.html), in JDK5 is `"yyyy-MM-dd'T'HH:mm:ss.SSSZ"`.
– SergiJan 09 '14 at 11:44
This (with the Z) is not doing 100% what the OP wants. This gives: "2014-01-09T06:47:19.078-0500" while OP wants: "2014-01-09T06:47:19.0782-05:00". I am not sure how it can be done with JDK <= 6.
– peter.petrovJan 09 '14 at 11:54
Fortunately I am using Java7 so this answer is good enough for me. In fact, yesterday's comment to the question by @peter.petrov had reference to another question with the same answer. Thanks everyone who tried to help
– Joel ShemtovJan 10 '14 at 08:25