I have the following scenario :
SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\"); System.out.println(dateFormat.parse(\"31/05/2011\"));
How about:
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); System.out.println(dateFormat.format(dateFormat.parse("31/05/2011"))); > 31/05/2011