package com.ce.shi.jiexi;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class e {
public static void main(String[] args) throws ParseException {
String datdString = "Tue Feb 14 2017 14:06:32 GMT+0800";
datdString = datdString.replace("GMT", "").replaceAll("\\(.*\\)", "");
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd yyyy hh:mm:ss ", Locale.ENGLISH);
Date dateTrans = format.parse(datdString);
String timeString = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(dateTrans);
System.out.println(timeString);
}
}