Here you can find the source of parseIsoDate2(String s)
public static Date parseIsoDate2(String s)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date parseIsoDate2(String s) { //SimpleDateFormat iso8601format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss+Z"); SimpleDateFormat iso8601format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX"); try {//from ww w . j a va2 s. c om return iso8601format.parse(s); } catch (Exception e) { return null; // EPOC_DATE; } } }