I have two dates that are oracle DATE type. How to subtract and get days/hr

How to subtract two oracle dates and get the result in days/hours/minutes/seconds.Oracle keeps telling me that i need to do PL/SQL but i dont know it. They will not give me an example in JAVA so i came here.ThanksAdam
[252 byte] By [adamrau] at [2007-9-26 2:30:35]
# 1
Does anyone have any idea on how to accomplish this. Is there anyway to convert the dates to java dates and then do the calculation.THanks again
adamrau at 2007-6-29 9:49:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
As long as you know what format they are in you can use java.util.simpleDateFormat to parse them as a java date. Take a look at the class documentation to see how.
Breakfast at 2007-6-29 9:49:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
You mean java.text.SimpleDateFormat :o).
rajbhaskar at 2007-6-29 9:49:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I don't like to make things too easy for people ;-)
Breakfast at 2007-6-29 9:49:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...