SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
Date date = sdf.parse("21-MAY-09") ; This will returnt the corresponding Date Object ,,, and
String strDate = sdf.format(date); This will return the corresponding String Format.
Hope you clear
Joined: Jan 27, 2010
Thanks for the inputs. But my problem is, i need to give the formatted date as a input param to the callable statement . since in front end they have used string, have to convert the string to date and with the same format. but formatting a date returns string.
cstmt.setDate(date); where date should come from a stirng and with the same format as string.