I wanto to change data type from
string to timestamp,
but I get a not suitable value according format DD-MM-YYYY
My coding :
String fdate="02-05-2006";
SimpleDateFormat dateFormat = new SimpleDateFormat("DD-MM-yyyy");
java.util.Date parsedFDate = dateFormat.parse(fdate);
java.sql.Timestamp fdateabsence=new java.sql.Timestamp(parsedFDate.getTime());
I get result=2006-01-02 00:06:00.0
Please help me... so I get result according my fdate is=02-05-006 and data type will be timestamp