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...
User Profile
Collapse
Profile Sidebar
Collapse
Rekha Angappan
Last Activity: Mar 14 '12, 05:59 PM
Joined: Mar 14 '12
Location:
No activity results to display
Show More