I have created on html page to get Date of Birth.In jsp page, String d=request.getParameter("day"); String m=request.getParameter("month"); String y=request.getParameter("year"); String dob=d+"/"+m+"/"+y;
In my table(app) i have given dob as one column and declared as DATE Type.
in JDBC, i have used this statement stmt.executeUpdate("insert into app values(TO_DATE('dob','dd/mm/yyyy'))");
it is not updating in my database. if i give sysdate, it is updating in the database.What is the problem in this? is the way of approch, correct to update the date in my database? help me out.