页面中格式化输出时间:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:formatDate value="${instrumentReservation.sysTime}" type="both"
          pattern="yyyy年MM月dd日 hh时mm分ss秒" />

Sql Server 2000 中 2011-9-23 PM 02:54:15  14:54:15

页面显示 2011年09月23日 02时54分15秒。显示成上午的时间了。

解决办法 hh(12小时)-->HH(24小时)

<fmt:formatDate value="${instrumentReservation.sysTime}" type="both"
          pattern="yyyy年MM月dd日 HH时mm分ss秒" />

2011年09月23日 14时54分