Here you can find the source of getIso8601DateFormat()
private static DateFormat getIso8601DateFormat()
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.SimpleTimeZone; public class Main { private static final String ISO8601_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; private static DateFormat getIso8601DateFormat() { SimpleDateFormat df = new SimpleDateFormat(ISO8601_DATE_FORMAT, Locale.US); df.setTimeZone(new SimpleTimeZone(0, "GMT")); return df; }/* w ww . j ava 2 s. co m*/ }