How to convert Date to String in java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Example program to convert Date to String in Java

Statistics

  • Total Hits - 27269

  • Total Votes - 239 votes

  • Vote Up - 69 votes

  • Vote Down - 170 votes

  • Domain - beginnersbook.com

  • Category - JAVA/Core JAVA

  • Submitted By - Chaitanya

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

Description

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements