Here you can find the source of dateFromISO8601(String iso)
public static Date dateFromISO8601(String iso)
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class Main { public static SimpleDateFormat tportResultFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSSZ"); public static Date dateFromISO8601(String iso) { try {//from w ww . jav a2s .c om String noColon = iso.substring(0, 26) + iso.substring(27); return tportResultFormat.parse(noColon); } catch (ParseException e) { throw new RuntimeException( "Really unlikely, but it looks like " + "travelport is not using ISO dates anymore! " + e.getMessage()); } } }