日期:2014-05-20 浏览次数:20702 次
String date = "Fri Feb 24 15:00:00 CST 2012"; String pattern = "EEE MMM dd hh:mm:ss zzz yyyy"; SimpleDateFormat f = new SimpleDateFormat(pattern); SimpleDateFormat f2 = new SimpleDateFormat("yyyy-MM-dd"); System.out.println(f2.format(f.parse(date)));