Hello ,
I want to insert a Date object in mysql database , which has a Date type in the database as well , i am having problems inserting the date .
Here is what i wrote :
String s;
s = date.getCurrentMonth() + "/" + date.getCurrentDay() + "/" + date.getCurrentYear();
DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
try {
Date startDate = (Date) formatter.parse(s);
} catch (ParseException ex) {
}
I'm getting 0 errors in the code.