Here you can find the source of formatTime_(String time)
public static Date formatTime_(String time) throws ParseException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date formatTime_(String time) throws ParseException { time = time.replaceAll("T", " "); DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss+0000"); return format.parse(time); }// w w w . j a v a 2s .c o m }