Originally posted by Gary VanMatre:
I don't understand why this converter won't support a java.sql.Date. I think it might be rooted in the common bean utils library.
When the DateTimeConverter gets a
string it tries to convert it into Date object as follows :
1. It takes the input in the form of "String"
2. Passes the String to getAsObject method
3. getAsObject method, ultimately calls SimpleDateFormat.parse(String str) method and return the output of this method to you.
Now you want the output to be of java.sql.Date type but if you see the
API here, "parse" method returns java.util.Date type of object.