Dates and Times: ISO 8601 and Java

From: Derek Richardson <>
Date: Mon, 11 Oct 2004 20:43:17 -0400

Does anyone know where to find code to convert between Java Calendar
objects and ISO 8601 strings as specified by XML Schema? I did a quick
web search and found a bunch of easy, naive implementations that neglect
fractions of seconds and timezones and negative years, but nothing that
seems to handle all the cases.
Derek Richardson