"Sat Sep 11 21:50:00 CST 2010" 转Date

String date = "Sat Sep 11 21:50:00 CST 2010";
  
  SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy",Locale.US);
  
  Date d=sdf.parse(date);

  sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

  System.out.println(sdf.format(d));

你可能感兴趣的:("Sat Sep 11 21:50:00 CST 2010" 转Date)