I have the following scenario :
SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\"); System.out.println(dateFormat.parse(\"31/05/2011\"));
You already has this (that's what you entered) parse will parse a date into a giving format and print the full date object (toString).
parse
toString