在jsp页面中输出完整的时间,格式为"年 月 日  时:分:秒"

1 <% Date date = new Date(); 
2    SimpleDateFormat t = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
3    String time = t.format(date);
4 %>
5 当前时间:<%= time %>

jsp输出当前时间

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案