wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "about dates" Watch "about dates" New topic
Author

about dates

volsteni raj
Greenhorn

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
drifter
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: about dates