I have to insert a date/time field in access database from my java code. But the date/time field format in DB is MM/DD/YYYY HH/MM/SS AM/PM.I tried the code below.
DateTime date=new DateTime();
SimpleDateForma t formatter = new SimpleDateForma t("MM/dd/yyyy hh:mm:ss a");
date=formatter. parseDateTime(c ongestion_detai ls[2]);

where congestion_deta ils[2] is the string to be converted.It shows the error - cannot...