SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
String strNow = sdf.format(new Date());

 

相关文章:

  • 2021-05-25
  • 2022-12-23
  • 2021-10-23
  • 2021-11-07
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案