使用ResultSet的getDate()方法获取的日期只有年月日,而getTimestamp()则会显示到毫秒。查api文档,没有涉及到取出的日期格式。在网上搜,发现一般做法是先用getTimestamp()取出完整日期,然后用SimpleDateFormat进行日期格式转换。

相关文章:

  • 2021-05-29
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2019-03-04
猜你喜欢
  • 2021-08-11
  • 2021-11-01
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案