Am facing problem while using @Temporal(TemporalType.DATE) recently we started migrating our project from struts2 to spring while we are using @Temporal(TemporalType.DATE) in struts2 for a java.util.Date field able to retrieve the Date field data as 10/7/14 but coming to springs the same Date field data is retrieving as Tue Oct 07 11:21:00 IST 2014
So,why spring is unable to convert the Tue Oct 07 11:21:00 IST 2014 to 10/7/14 which is a java.util.Date object internally.
How we can achieve this conversion of Tue Oct 07 11:21:00 IST 2014 to 10/7/14 as a java.util.Date Object.
Any help is greatly appreciated thanks.