jsp页面:需要加Struts标签
<%@ taglib prefix="s" uri="/struts-tags" %>
jsp页面显示
<s:date name="#item.createTime" format="yyyy-MM-dd HH:mm:ss" />
后台转换
String logTime = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(ssv.getDate());
jsp页面:需要加Struts标签
<%@ taglib prefix="s" uri="/struts-tags" %>
jsp页面显示
<s:date name="#item.createTime" format="yyyy-MM-dd HH:mm:ss" />
后台转换
String logTime = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(ssv.getDate());