The date format in the Oracle query results shows the number of milliseconds, how to remove the extra number

Source: Internet
Author: User
@Temporal (Temporaltype.timestamp) @Column (name= "Createtime", nullable=false)private Date createtime;    // registration time    
The date type in the database, taken to the YYYY-MM-DD HH-MM-SS format on the page
Use @temporal to get the type of format you want
2016-12-07 11:47:58.697 This is going to be shown in milliseconds.
DATE YYYY-MM-DD
Time Hh:mm:ss
Show to seconds in page:
<td><fmt:formatdate value= "${temp. TIME} "pattern=" Yyyy-mm-dd HH:mm:ss "></fmt:formatDate></td>

The date format in the Oracle query results shows the number of milliseconds, how to remove the extra number

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.