在jsp页面中输出完整的时间,格式为"年 月 日 时:分:秒"
<% date date = new date();
simpledateformat t = new simpledateformat("yyyy-mm-dd hh:mm:ss");
string time = t.format(date);
%>
当前时间:<%= time %>
以上就是小编为大家带来的jsp输出当前时间的实现代码全部内容了,希望大家多多支持硕编程~
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!