public String getLoginUserDetails(String p_userid) throws EElixirException{ Connection oConnection = null; CallableStatement callableStatement = null; CommonDAX commonDAX =null; String strSql = null; String out_success = ""; String out_msg = ""; Date p_selected_dt = new Date(); java.sql.Date sqlDate=new java.sql.Date(p_selected_dt.getTime()); try { _oLog.entry("CAMSLogoff","SaveLoginUserDetails",""); _oLog.debug("CAMSLogoff","SaveLoginUserDetails","p_userid="+p_userid); commonDAX = CommonDAX.getDAX(); oConnection = DBConnection.getConnection(); System.out.println("Inside LoginDatePageDAX Class for oConnection" +oConnection); commonDAX.setConnection(oConnection); System.out.println("Inside LoginDatePageDAX Class for commonDAX" +commonDAX); strSql = getSQLStringFromCommon("Select",Constants.SAVE_LOGIN_USER_DETAILS); callableStatement = oConnection.prepareCall(strSql); System.out.println("Inside LoginDatePageDAX Class for callableStatement" +callableStatement); callableStatement.setString(1,p_userid); callableStatement.setString(2, "1"); callableStatement.setDate(3, sqlDate); callableStatement.registerOutParameter(4,Types.VARCHAR); callableStatement.registerOutParameter(5,Types.VARCHAR); callableStatement.execute(); out_success = callableStatement.getString(4); out_msg = callableStatement.getString(5); } catch(EElixirException eex) { _oLog.fatal("LoginDatePageDAX","SaveLoginUserDetails",eex); System.out.println("Inside LoginDatePageDAX Class for LoginDatePageDAX" +eex); throw eex; } catch(SQLException sqlex) { _oLog.fatal("LoginDatePageDAX","CAMSLogoff",sqlex); System.out.println("Inside LoginDatePageDAX Class for LoginDatePageDAX" +sqlex); throw new EElixirDAXException(sqlex,""+sqlex); } finally { jdbcCleanUp(callableStatement); } return out_success + "," + out_msg; } I am getting an error like input value not long enough for date format. How do i resolve