Java 8 DateFormatBuilder API to build ISO 8601 Date format
<p>I am trying to build a ISO 8601 format("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"). Ia m using Java 8 DateFormatBuilder to parse the string in ISO 8601 format.</p>

<p>When I encounter UTC time the output of formatting is "2016-11-01T16:51:35.000Z" but what I really need is have 00:00 instead of Z. I tried DateFormatBuilder to build that but no success.</p>

<p>I finally ended up doing following</p>

<pre><code>DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder();
DATETIMEFOMATTER = builder.parseCaseInsensitive()
                .append(DateTimeFormatter.ISO_OFFSET_DATE_TIME)
                .toFormatter();

ZonedDateTime zonedDate = ZonedDateTime.parse(date, DATETIMEFOMATTER);
        String utcDate = zonedDate.format(FORMATTER);
        if (utcDate.indexOf("Z") != -1){
            utcDate = utcDate.replace("Z", "-00:00");
        }
</code></pre>

<p>I do not want to parse the string and replace Z with "00:00". Joda API are easier to work with. Any idea if we can build using Java 8 DateTimeFormatterBuilder? I did refer few stackoverflow questions but didnt work. I may be doing something wrong. Can someone help?</p>