If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Date function thru Java

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-03, 10:52
krohit krohit is offline
Registered User
 
Join Date: Oct 2003
Posts: 12
Post Date function thru Java

I have a PL/SQL stored procedure using to_date function as to_date(variable, 'DD-MON-YYYY'). When the procedure is executed thru SQL+ or SQL Navigator it works fine, but when the same procedure is called using Java, the date returns only last two digits of the year with century as 00. e.g, 1999 is returned as 0099 and 2003 as 0003. Is there any Java application server setting which overwrites the date passed from Oracle? If anyone has any clue on how to solve this issue, please let me know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On