String s = formatter.format(date); //将Date转换为符合格式的String
关于定义日期格式的详细信息请参见API。

 

相关文章:

  • 2021-09-29
  • 2022-01-12
  • 2021-09-28
  • 2021-05-31
  • 2021-05-19
  • 2021-09-26
  • 2021-12-03
  • 2021-12-27
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-05-17
  • 2021-04-12
  • 2022-12-23
相关资源
相似解决方案