i want to convert string date to date format for storing database table.The below code is not working.it showing java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date Exception.
Date date = (Date)hmap.get("skillexpdate");
Use |
|||
|
You can't simply cast. You need to use SimpleDateFormat.parse() to convert |
|||||||||
|