日期:2014-05-20 浏览次数:20770 次
public static void main(String[] args) throws IOException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.S"); try { Date date = sdf.parse("2012-08-27T20:45:16.42+08:00"); System.out.println(date); } catch (ParseException e) { e.printStackTrace(); } }