jsp页面日期显示

SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    out.println(format.format(new Date()));

 

显示格式为:2012-10-15 15:06:19

posted on 2012-10-15 15:13  juan1206  阅读(149)  评论(0)    收藏  举报

导航