String dateStr = "Wed Dec 10 00:00:00 UTC 0800 2014"; //Wed Dec 10 00:00:00 UTC 0800 2014

    SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss 'UTC' yyyy",Locale.US);
   

    try { 
        Date date = (Date) sdf.parse(dateStr); 
        String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date); 
        System.out.println(formatStr); 
    } catch (ParseException e) { 
        e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates. 
    }

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2021-11-21
  • 2021-06-07
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-05
  • 2021-10-25
  • 2022-02-03
相关资源
相似解决方案