My controller class:

Date assessmentCreatedTime = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").parse(request.getParameter("assesmentCr eatedTime"));

user.setAssessmentCreatedTime(assessmentCreatedTim e);

My Dao class:

ps.setDate(5, new java.sql.Date(userBean.getAssessmentCreatedTime(). getTime()));

My pblm is im inserting 2014-01-23 11:40:30 these values in my ui page means...these value dose not insert crt frmt to the db..(databse inserted data 2014-01-23 00:00:00).im using postgresql(postgresql datatype timestamp without time zone).pls solve my pblm...ThnkYou!!!