I am using standalone Spring framework and I want to implement Spring 3.2 @DateTimeFormat(pattern = \"dd/mm/yyyy\"), but not getting the expected output.
You are calling System.out.println directly in a method of your class. This can't work that way.
You have to call the dob field from outside of your class, for instance from a JSP page. And this way, the field will be automatically formatted to the given pattern.