File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing parameter to date function in DB2

Parameswaran Thangavel
Ranch Hand
Posts: 485
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all
I need to find the difference between the date the user enters and the current date. and i used the below query to find it out.

i am using the prepared statement to pass the values to this query, using the

i even tried hard coding the values but still i am getting the error.

Have anyone know what the reason. The format of the date i am passing in is valid one. i seen some examples using above date format.

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic