Hello Sir,
You can use
java class java.text.SimpleDateFormat
for your conversion as follows:
String stringDate = "2001-10-08";
SimpleDateFormat sdfInput =
new SimpleDateFormat( "yyyy-MM-dd" );
java.util.Date date = sdfInput.parse( stringDate );
Cheers
Originally posted by vikramnp:
Hi all,
i want to know how i can convert a string into a date data type.
String date=request.getParameter("txtGraduationdate");
well in my backend i created the field as "date" data type.
So how will i be able to convert this.
Thanks and Regards,
vikram