Add the following code to the controller to automatically bind the date parameter
@InitBinder public void initData (WebDataBinder wdb) { wdb.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"), true)); }
Add the following code to the controller to automatically bind the date parameter
@InitBinder public void initData (WebDataBinder wdb) { wdb.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"), true)); }