2013年12月8日星期日

JSP display case there are three seconds behind the decimal point when Timestamp datatype how to solve ?


This code displays the timing of orders in the jsp : $ {requestScope.order.orderdate}
orderdate which data type is Timestamp, how to get rid of seconds without changing it back under three decimal data type of situation ?
------ Solution ---------------------------------------- ----
the date format it, convert yyyy-mm-dd hh24: mi: ss on it

------ For reference only ---------------------------------- -----
DateFormat Yeah , under its own format !

没有评论:

发表评论