This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.