Here you can find the source of parseFullTime(String str)
public static Date parseFullTime(String str) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; public class Main { public static Date parseFullTime(String str) throws ParseException { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); return format.parse(str); }//from w w w.j av a2 s .c o m public static Date parseFullTime(String str, TimeZone timeZone) throws ParseException { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); format.setTimeZone(timeZone); return format.parse(str); } public static Date parse(String pattern, String dateStr) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat(pattern); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); return sdf.parse(dateStr); } }