how to convert from ifs date format to sql based dates
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