Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java U Java util date

Related Tutorials


 
 

Share on Google+Share on Google+

Java util date

Advertisement
The class Date in "java.util" package represents date and time.

Java util date

     

 

The class Date in "java.util" package represents date and time. It's no arguments constructor creates date object specifying current date and time. It can be created specifying year, month, date. Years are specified as the number of years since 1900. You can also specify hour, minute, and second along with year, month and date. It can also be created specifying the number of milliseconds from January 1, 1970, 00:00:00 GMT. This class provides many methods that lets you set and get fields, comparing date, converting dates to string and string to date.

Read  more at:

http:/www.roseindia.net/java/java-conversion/StringToDate.shtml

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 18, 2009

Related Tutorials

Discuss: Java util date  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com