Use can use CustomDateEditor. First, the CustomDateEditor is created, that converts a String to java.util.Date. The format that will be used to parse the String to Date is also defined inside the CustomDateEditor bean definition.
<bean id="dateEditor"
class="org.springframework.beans.propertyeditors.CustomDateEditor">
<constructor-arg>
<bean class="java.text.SimpleDateFormat">
<constructor-arg value="yyyy-MM-dd-HH:mm:ss;z" />
</bean>
</constructor-arg>
<constructor-arg value="true" />
</bean>
Then the CustomEditorConfigurer is created to register the CustomDateEditor. It has a property named customEditors, that consists of a map with a java.util.Date key and a value that is a reference to the CustomDateEditor bean.
<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.util.Date">
<ref local="dateEditor" />
</entry>
</map>
</property>
</bean>
Now in initBinder method use it
binder.registerCustomEditor(Date.class,dateEditor);
super.initBinder(request, binder);
UPDATE:
Or if you just hate that configuration in xml file, you can directly register CustomDateEditor like this in InitBinder. This method should be written in controller.:
@InitBinder
public void initBinder( WebDataBinder binder){
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("MM/dd/yyyy");
simpleDateFormat.setLenient(false);
binder.registerCustomEditor( Date.class, new CustomDateEditor( simpleDateFormat,false));
}