Hi,
Thanx for ur help Anurag Mishra and hanx Ali Gohar..
Im taking a
string date from a user in a
Jsp page and Ive used the codings given below to convert string to Date
String today="27.06.2004";
SimpleDateFormat formatter= new SimpleDateFormat ("dd.MM.yyyy");
Date d = formatter.parse(today);
This gave me a java.util.Date type d.
but it didnt souit with
pstmt.setDate(2,d);
pstmt is a PreparedStatement obj.
since pstmt needs a java.sql.Date type rather than a util date.
How can I overcome this problem.
Thanx in advance for any help.
Best regs,
Jayanath
