Operate date types in Java

Source: Internet
Author: User
Source: http://okone96.itpub.net/post/9033/71169

After JDK 1.1, most methods of the Java. util. date type are no longer recommended. Instead of calendar.

There are some subtle relationships between Java. SQL. Date and Java. util. Date.

How to insert the date type into the database has become a major obstacle for many people.

We will discuss the following classes:

1. java. util. Date
2. abstract class java. Text. dateformat and a specific subclass of Java. Text. simpledateformat
3. abstract class java. util. calendar and a specific subclass of it, java. util. gregoriancalendar

A specific class can be instantiated, but the abstract class cannot. You must first implement a specific subclass of the abstract class.
*
......
[Read the full text]

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.