Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to convert from ifs date format to sql based dates

6431Oct 29 2001
I want to write a sql query using dates, to search an ifs
database. Ifs stores dates as numbers created using the
java.util.Date class. These dates are accurate to seconds.

PLSQL uses a different format.

What I need is a PLSQL function that converts PLSQL date format
to and from the java.util.date format.

This is an example of what I would like to do.

String classname = "DOCUMENT";
String whereclause = "CREATEDATE > theNeededFuction(to_date('01-
Jan-2001', 'DD-Mon-YYYY'),'j')";
Selector mySelector = new Selector(login.getSession());
mySelector.setSearchClassname(classname);
mySelector.setSearchSelection(whereclause);

I do realize that I could simply convert the date in java, but
in the long run, I want to use the oracle tools that support
busness day calulations.



-Mitch



Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2001
Added on Oct 29 2001
3 comments
805 views