I am using Microsoft Access database for storing data. In that, I stored date as "DATE/TIME" data type. While getting date from the following code it produces error..
String sql = "Select prev_date from StaffAdvance where Staff_ID='"+date+"'";
ResultSet rs = st.executeQuery(sql);
What is wrong with this code?