I have a bit of code that collects data values from a bean and I want it to then insert this into a mySQL database. My string is in the format "23/12/1983", how can i put this into a date field in my database? The bit of code I have got so far looks like this...
String month = formHandler.month + "/";
String day = formHandler.day + "/";
String year = formHandler.year ;
StringBuffer sb = new StringBuffer();
sb.append(day);
sb.append(month);
sb.append(year);
String myDate = sb.toString();
myDate is the value that I want to go into the database