标签:
private static String getSearchTime(String timeString){
SimpleDateFormat dateformat = new SimpleDateFormat("dd/MMM/yyyy:hh:mm:ss Z",Locale.ENGLISH);
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
String search_time = timeString.substring(timeString.indexOf("[")+1,timeString.indexOf("]"));
try{
search_time = format.format(dateformat.parse(search_time));
}catch(Exception e){
e.printStackTrace();
}
return search_time;
}
标签:
原文地址:http://www.cnblogs.com/52hadoop/p/4253623.html