so if i set crip.setApprovedDate(approvedDate); in fronend bean i getting datatype mismatch error.I dont know how to convert
Can anyone help me to solve this problem.
posted 6 years ago
The better would be to use the same form bean, and provide a utility method in the bean say getApprovedDateString(), which suppose to give you the String representation of that date. In that method you can use java.text.DateFormat class to format the date. You can also have a look at Jode Time API. Further, you might want a particular date format through out the application, in that case just define date format some where appropriate.