java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd k:mm:ss");
try {
      java.util.Date d = formatter.parse("2001-02-03 10:02:03");
      System.out.println(d);
} catch (ParseException ex) {
   ex.printStackTrace();
}

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2017-12-14
相关资源
相似解决方案