How do I format a date into dd/mm/yyyy?


Formatting a display is a common requirement when creating a program. Information in a good format can be seen as an added value to the user of the program. Using Java SimpleDateFormat we can easily format a date in our program.

Let’s view what we got on the console:

Filed in: Java Text Package
© 2014 Java Examples - Built with love by Wayan Saryada.