How to convert Date to String in java

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

How to convert Date to String in java

Example program to convert Date to String in Java
  • Total Hits: 21480

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 278 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-01-03 21:14:45

  • Submitted By: Chaitanya

  • Set as Favorite


This tutorial will help you understand the ways to convert Date into a String in Java. We will be performing this conversion with the help of SimpleDateFormat (For specifying the pattern like dd/MM/yyyy etc.) and format() method of DateFormat class.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 56.83%  158
 Two starsTwo star  Vote LeftVote MiddleVote Right 6.83%  19
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 7.55%  21
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 7.19%  20
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 21.58%  60

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.