How to get current date and time in java

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

How to get current date and time in java

Java program to fetch the current date and current time from the system
http://beginnersbook.com/2013/05/current-date-time-in-java/
  • Total Hits: 23207

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 320 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-01-03 20:58:52

  • Submitted By: Chaitanya

  • Set as Favorite

Description:

In this tutorial I have explained the ways to get current date/time in java with example programs. Java has the Date class available in java.util package, this class encapsulates the current date and time. We will use this class in our program along with SimpleDateFormat to fetch the date/time in desired format.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 40%  128
 Two starsTwo star  Vote LeftVote MiddleVote Right 6.25%  20
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 8.13%  26
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 8.13%  26
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 37.5%  120

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements