Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle java date problems

 
Ash More'
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From JAVA the call is made to procedure as follows..





AND THIS IS MY ORACLE PROCEDURE..



I get exception when I compare the two dates. One comes from JAVA and the other is the ORACLE Database. So I want some function which will convert one of the dates in the other date format.
[ July 23, 2008: Message edited by: Ash More' ]
 
Jan Cumps
Bartender
Posts: 2608
14
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
� I get exception here 2008-08-12 < 12-aug-08 because both dates are different format

Probably not because they are a different format. They are both Oracle DATE columns. 2008-08-12 and 12-aug-08 are merely textual represenatations of these dates.

Can you try if this works:
 
Ash More'
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks,
the problem seems to be with my table structure.
thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic