This is what iam using to insert date into data base can u please help me on this
String doi=request.getParameter("timestamp");
String doi1=(Date)formatter.parse(doi);