File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes about dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "about dates" Watch "about dates" New topic

about dates

volsteni raj

Joined: Jan 27, 2005
Posts: 3
how can i find difference between two dates?

how can i store date object in oracle database
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
For the first question, check this thread that just discussed dates.

Second question: jdbc
[ January 27, 2005: Message edited by: Carol Enderlin ]
vinod kumar

Joined: Jan 24, 2005
Posts: 15
The defference between two dates(two Date objects) u can findout by first getting the defference of milliseconds between the dates

long defferenceInMilliSeconds=Date1.getTime()-Date2.getTime();

you can convert this defference to hours or days as u want
for the second qst u can use JDBC
I agree. Here's the link:
subject: about dates
It's not a secret anymore!