I’m getting this exception:
com.ibm.db2.jcc.c.SqlException: The syntax of the string representation of a datetime value is incorrect
while trying to apply java.sql.Date in the format yyyy-mm-DD as the value 2011-12-28 in the Java Code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try to use
PreparedStatement.setDate()method.For instance,